Additions to git completion #3225

Closed
wants to merge 4 commits into
from

Projects

None yet

4 participants

@gladhorn
Contributor

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

@gladhorn gladhorn git completion: Rename __fish_git_heads to __fish_git_refs
In git speak, these are refs, while there can be several heads which are
refs in turn.
06003f8
@siteshwar siteshwar and 1 other commented on an outdated diff Jul 13, 2016
share/completions/git.fish
@@ -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
@siteshwar
siteshwar Jul 13, 2016 Member

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

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

@gladhorn
gladhorn Jul 13, 2016 Contributor

thanks!

gladhorn added some commits Jul 13, 2016
@faho
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 milestone: fish 2.4.0, next-2.x Sep 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment