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

Conversation

Projects
None yet
4 participants
@gladhorn
Contributor

gladhorn commented Jul 13, 2016

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

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.
Show outdated Hide outdated 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

This comment has been minimized.

@siteshwar

siteshwar Jul 13, 2016

Member

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

command git rev-parse --git-dir ^/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

This comment has been minimized.

@gladhorn

gladhorn Jul 13, 2016

Contributor

thanks!

@gladhorn

gladhorn Jul 13, 2016

Contributor

thanks!

gladhorn added some commits Jul 13, 2016

git completion: Add HEADS to __fish_git_refs
Ranges work with tags and HEAD etc.
git completion: add heads
Allows to complet "git checkout FETCH_HEAD" and similar.
@faho

This comment has been minimized.

Show comment
Hide comment
@faho

faho Jul 14, 2016

Member

Merged as 06003f8..2df263f.

Thanks!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment