Skip to content

Commit 3851e44

Browse files
tgummerergitster
authored andcommitted
completion: add git stash push
When introducing git stash push in f5727e2 ("stash: introduce push verb", 2017-02-19), I forgot to add it to the completion code. Add it now. Signed-off-by: Thomas Gummerer <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e0e7f99 commit 3851e44

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
@@ -2507,7 +2507,7 @@ _git_show_branch ()
25072507
_git_stash ()
25082508
{
25092509
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'
25112511
local subcommand="$(__git_find_on_cmdline "$subcommands")"
25122512
if [ -z "$subcommand" ]; then
25132513
case "$cur" in
@@ -2522,6 +2522,9 @@ _git_stash ()
25222522
esac
25232523
else
25242524
case "$subcommand,$cur" in
2525+
push,--*)
2526+
__gitcomp "$save_opts --message"
2527+
;;
25252528
save,--*)
25262529
__gitcomp "$save_opts"
25272530
;;

0 commit comments

Comments
 (0)