Skip to content

Commit 6f7f11f

Browse files
committed
Merge branch 'tg/stash-push-fixup'
The shell completion script (in contrib/) learned "git stash" has a new "push" subcommand. * tg/stash-push-fixup: completion: add git stash push
2 parents 2becdbd + 3851e44 commit 6f7f11f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2813,7 +2813,7 @@ _git_show_branch ()
28132813
_git_stash ()
28142814
{
28152815
local save_opts='--all --keep-index --no-keep-index --quiet --patch --include-untracked'
2816-
local subcommands='save list show apply clear drop pop create branch'
2816+
local subcommands='push save list show apply clear drop pop create branch'
28172817
local subcommand="$(__git_find_on_cmdline "$subcommands")"
28182818
if [ -z "$subcommand" ]; then
28192819
case "$cur" in
@@ -2828,6 +2828,9 @@ _git_stash ()
28282828
esac
28292829
else
28302830
case "$subcommand,$cur" in
2831+
push,--*)
2832+
__gitcomp "$save_opts --message"
2833+
;;
28312834
save,--*)
28322835
__gitcomp "$save_opts"
28332836
;;

0 commit comments

Comments
 (0)