@matheusbsbs / matheus-bagliano / commits / 7fd53fce1c
Fork 0

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>

Junio C Hamano committed Aug 3, 2007 at 02:04 UTC 7fd53fce1c574f6a4940eedf36383a4e9ed7ae6a
1 file changed +7
contrib/completion/git-completion.bash
+7
@@ -972,6 +972,11 @@ _git_show ()
972 __git_complete_file
973 }
974
975 +_git_stash ()
976 +{
977 + __gitcomp 'list show apply clear'
978 +}
979 +
980 _git ()
981 {
982 local i c=1 command __git_dir
@@ -1028,6 +1033,7 @@ _git ()
1033 shortlog) _git_shortlog ;;
1034 show) _git_show ;;
1035 show-branch) _git_log ;;
1036 + stash) _git_stash ;;
1037 whatchanged) _git_log ;;
1038 *) COMPREPLY=() ;;
1039 esac
@@ -1073,6 +1079,7 @@ complete -o default -o nospace -F _git_remote git-remote
1079 complete -o default -o nospace -F _git_reset git-reset
1080 complete -o default -o nospace -F _git_shortlog git-shortlog
1081 complete -o default -o nospace -F _git_show git-show
1082 +complete -o default -o nospace -F _git_stash git-stash
1083 complete -o default -o nospace -F _git_log git-show-branch
1084 complete -o default -o nospace -F _git_log git-whatchanged
1085