mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Alphabetically sorted bash_completion.
Makes it easier to work with and slightly optimizes things for bash_completion which sorts these completions alphabetically.
This commit is contained in:
parent
4353eee352
commit
1f2b3ea203
|
|
@ -1,5 +1,9 @@
|
|||
# bash completion support for git-extras.
|
||||
|
||||
_git_bug(){
|
||||
__git_extras_workflow "bug"
|
||||
}
|
||||
|
||||
_git_changelog(){
|
||||
__gitcomp "--list"
|
||||
}
|
||||
|
|
@ -28,6 +32,14 @@ _git_extras(){
|
|||
__gitcomp "--version update"
|
||||
}
|
||||
|
||||
__git_extras_workflow(){
|
||||
__gitcomp "$(__git_heads | grep ^$1/ | sed s/^$1\\///g) finish"
|
||||
}
|
||||
|
||||
_git_feature(){
|
||||
__git_extras_workflow "feature"
|
||||
}
|
||||
|
||||
_git_graft(){
|
||||
__gitcomp "$(__git_heads)"
|
||||
}
|
||||
|
|
@ -45,22 +57,14 @@ _git_ignore(){
|
|||
esac
|
||||
}
|
||||
|
||||
_git_squash(){
|
||||
__gitcomp "$(__git_heads)"
|
||||
}
|
||||
|
||||
__git_extras_workflow(){
|
||||
__gitcomp "$(__git_heads | grep ^$1/ | sed s/^$1\\///g) finish"
|
||||
}
|
||||
|
||||
_git_feature(){
|
||||
__git_extras_workflow "feature"
|
||||
}
|
||||
|
||||
_git_refactor(){
|
||||
__git_extras_workflow "refactor"
|
||||
}
|
||||
|
||||
_git_bug(){
|
||||
__git_extras_workflow "bug"
|
||||
_git_squash(){
|
||||
__gitcomp "$(__git_heads)"
|
||||
}
|
||||
|
||||
_git_undo(){
|
||||
__gitcomp "--hard --soft -h -s"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue