completion: add git stash push

When introducing git stash push in f5727e26e4 ("stash: introduce push verb", 2017-02-19), I forgot to add it to the completion code. Add it now. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Thomas Gummerer committed May 16, 2017 at 20:59 UTC 3851e4483f0d62e677703297218c9bb47325806f
1 file changed +4 -1
contrib/completion/git-completion.bash
+4 -1
@@ -2507,7 +2507,7 @@ _git_show_branch ()
2507 _git_stash ()
2508 {
2509 local save_opts='--all --keep-index --no-keep-index --quiet --patch --include-untracked'
2510 - local subcommands='save list show apply clear drop pop create branch'
2510 + local subcommands='push save list show apply clear drop pop create branch'
2511 local subcommand="$(__git_find_on_cmdline "$subcommands")"
2512 if [ -z "$subcommand" ]; then
2513 case "$cur" in
@@ -2522,6 +2522,9 @@ _git_stash ()
2522 esac
2523 else
2524 case "$subcommand,$cur" in
2525 + push,--*)
2526 + __gitcomp "$save_opts --message"
2527 + ;;
2528 save,--*)
2529 __gitcomp "$save_opts"
2530 ;;