git-completion: add "git stash"
This is a new addition to 1.5.3; let's teach it to the completion before the final release. [sp: Added missing git-stash completion configuration] Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
4f8f03d643
commit
7fd53fce1c
@ -972,6 +972,11 @@ _git_show ()
|
|||||||
__git_complete_file
|
__git_complete_file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_git_stash ()
|
||||||
|
{
|
||||||
|
__gitcomp 'list show apply clear'
|
||||||
|
}
|
||||||
|
|
||||||
_git ()
|
_git ()
|
||||||
{
|
{
|
||||||
local i c=1 command __git_dir
|
local i c=1 command __git_dir
|
||||||
@ -1028,6 +1033,7 @@ _git ()
|
|||||||
shortlog) _git_shortlog ;;
|
shortlog) _git_shortlog ;;
|
||||||
show) _git_show ;;
|
show) _git_show ;;
|
||||||
show-branch) _git_log ;;
|
show-branch) _git_log ;;
|
||||||
|
stash) _git_stash ;;
|
||||||
whatchanged) _git_log ;;
|
whatchanged) _git_log ;;
|
||||||
*) COMPREPLY=() ;;
|
*) COMPREPLY=() ;;
|
||||||
esac
|
esac
|
||||||
@ -1073,6 +1079,7 @@ complete -o default -o nospace -F _git_remote git-remote
|
|||||||
complete -o default -o nospace -F _git_reset git-reset
|
complete -o default -o nospace -F _git_reset git-reset
|
||||||
complete -o default -o nospace -F _git_shortlog git-shortlog
|
complete -o default -o nospace -F _git_shortlog git-shortlog
|
||||||
complete -o default -o nospace -F _git_show git-show
|
complete -o default -o nospace -F _git_show git-show
|
||||||
|
complete -o default -o nospace -F _git_stash git-stash
|
||||||
complete -o default -o nospace -F _git_log git-show-branch
|
complete -o default -o nospace -F _git_log git-show-branch
|
||||||
complete -o default -o nospace -F _git_log git-whatchanged
|
complete -o default -o nospace -F _git_log git-whatchanged
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user