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

Conversation

gladhorn
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Ranges work with tags and HEAD etc.
Allows to complet "git checkout FETCH_HEAD" and similar.
@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
Development

Successfully merging this pull request may close these issues.

None yet

4 participants