Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'tg/stash-push-fixup'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 29 May 2017 03:34:52 +0000
(12:34 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 29 May 2017 03:34:52 +0000
(12:34 +0900)
The shell completion script (in contrib/) learned "git stash" has
a new "push" subcommand.
* tg/stash-push-fixup:
completion: add git stash push
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
(from parent 1:
2becdbd
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 1ed0a09feef51ae606dbc2d7aa1944a49c6c28ee..45a78a09531345f10a26d440bbbf6f381c4033bc 100644
(file)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-2813,7
+2813,7
@@
_git_show_branch ()
_git_stash ()
{
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")"
if [ -z "$subcommand" ]; then
case "$cur" in
@@
-2828,6
+2828,9
@@
_git_stash ()
esac
else
case "$subcommand,$cur" in
+ push,--*)
+ __gitcomp "$save_opts --message"
+ ;;
save,--*)
__gitcomp "$save_opts"
;;