mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Add ref completion to git-missing.
I find useful to get the ref completion in the git-missing command, the behavior is the *like* the one on 'git log --pretty' it use the 'git for-each-ref' command to provide shortname of : * All local branches. * All remote/branches. * All tags. * The stash. The output can be a bit huge, but provide a standard git / bash completion.
This commit is contained in:
parent
a4c04f2c2b
commit
903512c02b
|
|
@ -57,6 +57,11 @@ _git_ignore(){
|
|||
esac
|
||||
}
|
||||
|
||||
_git_missing(){
|
||||
# Suggest all known refs
|
||||
__gitcomp "$(git for-each-ref --format='%(refname:short)')"
|
||||
}
|
||||
|
||||
_git_refactor(){
|
||||
__git_extras_workflow "refactor"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue