Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additions to git completion #3225

Closed
wants to merge 4 commits into from
Closed

Additions to git completion #3225

wants to merge 4 commits into from

Conversation

@gladhorn
Copy link
Contributor

gladhorn commented Jul 13, 2016

I often use "git rebase -i FETCH_HEAD", this adds auto completion for the various HEADS.

In git speak, these are refs, while there can be several heads which are
refs in turn.
@@ -24,9 +24,23 @@ function __fish_git_tags
command git tag ^/dev/null
end

function __fish_git_dir
command git rev-parse --git-dir 2>/dev/null

This comment has been minimized.

Copy link
@siteshwar

siteshwar Jul 13, 2016

Member

fish uses ^ to redirect stderr, so it should be :

command git rev-parse --git-dir ^/dev/null

This comment has been minimized.

Copy link
@gladhorn

gladhorn Jul 13, 2016

Author Contributor

thanks!

gladhorn added 3 commits Jul 13, 2016
Ranges work with tags and HEAD etc.
Allows to complet "git checkout FETCH_HEAD" and similar.
@gladhorn gladhorn force-pushed the gladhorn:master branch from 16857eb to c78ac3b Jul 13, 2016
@faho
Copy link
Member

faho commented Jul 14, 2016

Merged as 06003f8..2df263f.

Thanks!

@faho faho closed this Jul 14, 2016
@faho faho added this to the next-2.x milestone Jul 14, 2016
@krader1961 krader1961 modified the milestones: fish 2.4.0, next-2.x Sep 3, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.