git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] completion: unite --reuse-message and --reedit-message handling
@ 2011-10-06 18:40 Teemu Matilainen
  2011-10-06 18:40 ` [PATCH 2/3] completion: commit --fixup and --squash Teemu Matilainen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Teemu Matilainen @ 2011-10-06 18:40 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Shawn O. Pearce, Teemu Matilainen

Signed-off-by: Teemu Matilainen <teemu.matilainen@iki.fi>
---
 contrib/completion/git-completion.bash |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8648a36..656297d 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1259,12 +1259,8 @@ _git_commit ()
 			" "" "${cur##--cleanup=}"
 		return
 		;;
-	--reuse-message=*)
-		__gitcomp "$(__git_refs)" "" "${cur##--reuse-message=}"
-		return
-		;;
-	--reedit-message=*)
-		__gitcomp "$(__git_refs)" "" "${cur##--reedit-message=}"
+	--reuse-message=*|--reedit-message=*)
+		__gitcomp "$(__git_refs)" "" "${cur#*=}"
 		return
 		;;
 	--untracked-files=*)
-- 
1.7.7.138.g7f41b6

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

end of thread, other threads:[~2011-10-08  1:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 18:40 [PATCH 1/3] completion: unite --reuse-message and --reedit-message handling Teemu Matilainen
2011-10-06 18:40 ` [PATCH 2/3] completion: commit --fixup and --squash Teemu Matilainen
2011-10-06 18:40 ` [PATCH 3/3] completion: push --set-upstream Teemu Matilainen
2011-10-06 23:14 ` [PATCH 1/3] completion: unite --reuse-message and --reedit-message handling Junio C Hamano
2011-10-08  1:04   ` SZEDER Gábor
2011-10-08  1:06     ` [PATCH 1/2] completion: unite --reuse-message and --reedit-message for 'notes' SZEDER Gábor
2011-10-08  1:09     ` [PATCH 2/2] completion: unite --format and --pretty for 'log' and 'show' SZEDER Gábor

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).