Skip to content

Commit 5ecbaaf

Browse files
committed
Merge branch 'tg/stash-push-fixup' into maint
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 b522c33 + 3851e44 commit 5ecbaaf

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
@@ -2810,7 +2810,7 @@ _git_show_branch ()
28102810
_git_stash ()
28112811
{
28122812
local save_opts='--all --keep-index --no-keep-index --quiet --patch --include-untracked'
2813-
local subcommands='save list show apply clear drop pop create branch'
2813+
local subcommands='push save list show apply clear drop pop create branch'
28142814
local subcommand="$(__git_find_on_cmdline "$subcommands")"
28152815
if [ -z "$subcommand" ]; then
28162816
case "$cur" in
@@ -2825,6 +2825,9 @@ _git_stash ()
28252825
esac
28262826
else
28272827
case "$subcommand,$cur" in
2828+
push,--*)
2829+
__gitcomp "$save_opts --message"
2830+
;;
28282831
save,--*)
28292832
__gitcomp "$save_opts"
28302833
;;

0 commit comments

Comments
 (0)