mirror of
https://github.com/git/git.git
synced 2024-11-27 20:14:30 +08:00
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>
This commit is contained in:
parent
e0e7f99ea4
commit
3851e4483f
@ -2507,7 +2507,7 @@ _git_show_branch ()
|
|||||||
_git_stash ()
|
_git_stash ()
|
||||||
{
|
{
|
||||||
local save_opts='--all --keep-index --no-keep-index --quiet --patch --include-untracked'
|
local save_opts='--all --keep-index --no-keep-index --quiet --patch --include-untracked'
|
||||||
local subcommands='save list show apply clear drop pop create branch'
|
local subcommands='push save list show apply clear drop pop create branch'
|
||||||
local subcommand="$(__git_find_on_cmdline "$subcommands")"
|
local subcommand="$(__git_find_on_cmdline "$subcommands")"
|
||||||
if [ -z "$subcommand" ]; then
|
if [ -z "$subcommand" ]; then
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
@ -2522,6 +2522,9 @@ _git_stash ()
|
|||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
case "$subcommand,$cur" in
|
case "$subcommand,$cur" in
|
||||||
|
push,--*)
|
||||||
|
__gitcomp "$save_opts --message"
|
||||||
|
;;
|
||||||
save,--*)
|
save,--*)
|
||||||
__gitcomp "$save_opts"
|
__gitcomp "$save_opts"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user