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

[PATCH 1/2] completion: unite --reuse-message and --reedit-message for 'notes'

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Oct 8, 2011, 01:06 UTC
Message-ID
<20111008010634.GB11561@goldbirke>
In-Reply-To
<20111008010432.GA11561@goldbirke>
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 contrib/completion/git-completion.bash |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 847e6e9a..98282435 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1668,11 +1668,9 @@ _git_notes ()
 			;;
 		esac
 		;;
-	add,--reuse-message=*|append,--reuse-message=*)
-		__gitcomp "$(__git_refs)" "" "${cur##--reuse-message=}"
-		;;
+	add,--reuse-message=*|append,--reuse-message=*|\
 	add,--reedit-message=*|append,--reedit-message=*)
-		__gitcomp "$(__git_refs)" "" "${cur##--reedit-message=}"
+		__gitcomp "$(__git_refs)" "" "${cur#*=}"
 		;;
 	add,--*|append,--*)
 		__gitcomp '--file= --message= --reedit-message=
-- 
1.7.7.187.ga41de
Previous: SZEDER GáborNext: SZEDER Gábor
Message 6 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.