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

[PATCH] completion: remove duplicate block for "git commit -c"

From
Mårten Kongstad <marten.kongstad@gmail.com>
Date
Apr 24, 2013, 20:49 UTC
Message-ID
<1366836546-11081-1-git-send-email-marten.kongstad@gmail.com>
Remove one of two consecutive, identical blocks for "git commit -c".
Signed-off-by: Mårten Kongstad <marten.kongstad@gmail.com>
---
 contrib/completion/git-completion.bash |    7 -------
 1 file changed, 7 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 93eba46..f67b0f0 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1182,13 +1182,6 @@ _git_commit ()
 		;;
 	esac
 
-	case "$prev" in
-	-c|-C)
-		__gitcomp_nl "$(__git_refs)" "" "${cur}"
-		return
-		;;
-	esac
-
 	case "$cur" in
 	--cleanup=*)
 		__gitcomp "default strip verbatim whitespace
-- 
1.7.9.5
Next: Junio C Hamano
Message 1 of 2 in “completion: remove duplicate block for "git commit -c"”
  1. completion: remove duplicate block for "git commit -c"Mårten Kongstad, Apr 24, 2013
  2. Junio C HamanoApr 24, 2013

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.