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

[PATCH 2/3] completion: commit --fixup and --squash

From
Teemu Matilainen <teemu.matilainen@iki.fi>
Date
Oct 6, 2011, 18:40 UTC
Message-ID
<1317926431-609-2-git-send-email-teemu.matilainen@iki.fi>
In-Reply-To
<1317926431-609-1-git-send-email-teemu.matilainen@iki.fi>
Signed-off-by: Teemu Matilainen <teemu.matilainen@iki.fi>
---
 contrib/completion/git-completion.bash |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 656297d..847e6e9 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1259,7 +1259,8 @@ _git_commit ()
 			" "" "${cur##--cleanup=}"
 		return
 		;;
-	--reuse-message=*|--reedit-message=*)
+	--reuse-message=*|--reedit-message=*|\
+	--fixup=*|--squash=*)
 		__gitcomp "$(__git_refs)" "" "${cur#*=}"
 		return
 		;;
@@ -1274,7 +1275,7 @@ _git_commit ()
 			--dry-run --reuse-message= --reedit-message=
 			--reset-author --file= --message= --template=
 			--cleanup= --untracked-files --untracked-files=
-			--verbose --quiet
+			--verbose --quiet --fixup= --squash=
 			"
 		return
 	esac
-- 
1.7.7.138.g7f41b6
Previous: Teemu MatilainenNext: Teemu Matilainen
Message 2 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.