8000 Additions to git completion by gladhorn · Pull Request #3225 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Additions to git completion#3225

Closed
gladhorn wants to merge 4 commits intofish-shell:masterfrom
gladhorn:master
Closed

Additions to git completion#3225
gladhorn wants to merge 4 commits intofish-shell:masterfrom
gladhorn:master

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.
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!

gladhorn added 3 commits July 13, 2016 17:36
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
@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.

4 participants

0