git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bash completion: allow git stash store options completion
@ 2015-01-13 17:53 Alexander Kuleshov
  2015-01-13 18:40 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kuleshov @ 2015-01-13 17:53 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Alexander Kuleshov

This patch adds bash completion for git stash 'store' subcommand
which apperead at bd514cad (stash: introduce 'git stash store', 18 Jun 2013)

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 contrib/completion/git-completion.bash | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index c21190d..7578266 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2375,7 +2375,7 @@ _git_show_branch ()
 _git_stash ()
 {
 	local save_opts='--keep-index --no-keep-index --quiet --patch'
-	local subcommands='save list show apply clear drop pop create branch'
+	local subcommands='save list show apply clear drop pop create branch store'
 	local subcommand="$(__git_find_on_cmdline "$subcommands")"
 	if [ -z "$subcommand" ]; then
 		case "$cur" in
@@ -2402,6 +2402,9 @@ _git_stash ()
 			__gitcomp_nl "$(git --git-dir="$(__gitdir)" stash list \
 					| sed -n -e 's/:.*//p')"
 			;;
+		store,--*)
+			__gitcomp "--message --quiet"
+			;;
 		*)
 			;;
 		esac
-- 
2.3.0.rc0.239.g0ae1f56.dirty

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-14 20:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 17:53 [PATCH] bash completion: allow git stash store options completion Alexander Kuleshov
2015-01-13 18:40 ` Junio C Hamano
2015-01-14 19:03   ` brian m. carlson
2015-01-14 20:06     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).