completion: remove duplicate block for "git commit -c"
authorMårten Kongstad <marten.kongstad@gmail.com>
Wed, 24 Apr 2013 20:49:06 +0000 (22:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Apr 2013 23:05:07 +0000 (16:05 -0700)
Remove one of two consecutive, identical blocks for "git commit -c".

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

Signed-off-by: Mårten Kongstad <marten.kongstad@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
index 93eba467502282db2697e1cf6c93a6909d35ee5c..f67b0f008b7c7e82612d7d2330cbd6dbf80adf6b 100644 (file)
@@ -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