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

2 messages from 2013-04-24 to 2013-04-24. Participants: Mårten Kongstad, Junio C Hamano.
Thread: https://gitlist.dev/t/33594

## Mårten Kongstad, 2013-04-24 20:49

Subject: [PATCH] completion: remove duplicate block for "git commit -c"
Message-ID: <1366836546-11081-1-git-send-email-marten.kongstad@gmail.com>
URL: https://gitlist.dev/e/1366836546-11081-1-git-send-email-marten.kongstad%40gmail.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

```

## Junio C Hamano, 2013-04-24 23:04

Subject: Re: [PATCH] completion: remove duplicate block for "git commit -c"
Message-ID: <7vvc7b8r8t.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vvc7b8r8t.fsf%40alter.siamese.dyndns.org
In-Reply-To: <1366836546-11081-1-git-send-email-marten.kongstad@gmail.com>

```
This was caused by a mechanical mismerge at d931e2fb252e (Merge
branch 'mp/complete-paths', 2013-02-08), it seems.  The side branch
fea16b47 wanted to add this block, of course, but the same fix was
done independently in 685397585 already.

Thanks for catching it.

```
