git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/3] completion: unite --reuse-message and --reedit-message handling

From
Teemu Matilainen <teemu.matilainen@iki.fi>
Date
Oct 6, 2011, 18:40 UTC
Message-ID
<1317926431-609-1-git-send-email-teemu.matilainen@iki.fi>
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
Next: Teemu Matilainen
Message 1 of 7 in “completion: unite --reuse-message and --reedit-message handling”
  1. 1/3 completion: unite --reuse-message and --reedit-message handlingTeemu Matilainen, Oct 6, 2011
  2. 2/3 completion: commit --fixup and --squashTeemu Matilainen, Oct 6, 2011
  3. 3/3 completion: push --set-upstreamTeemu Matilainen, Oct 6, 2011
  4. Junio C HamanoOct 6, 2011
  5. SZEDER GáborOct 8, 2011
  6. 1/2 completion: unite --reuse-message and --reedit-message for 'notes'SZEDER Gábor, Oct 8, 2011
  7. 2/2 completion: unite --format and --pretty for 'log' and 'show'SZEDER Gábor, Oct 8, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.