sparse: Fix mingw_main() argument number/type errors
[gitweb.git] / contrib / completion / git-completion.bash
index f38579214fa17aeb2c15c73b6fe0ac5d1bca1de4..bc3fc9e323564889c2c55013c7286c0cd01615d7 100644 (file)
@@ -210,11 +210,11 @@ __gitcomp ()
                local c i=0 IFS=$' \t\n'
                for c in $1; do
                        c="$c${4-}"
-                       case $c in
-                       --*=*|*.) ;;
-                       *) c="$c " ;;
-                       esac
                        if [[ $c == "$cur_"* ]]; then
+                               case $c in
+                               --*=*|*.) ;;
+                               *) c="$c " ;;
+                               esac
                                COMPREPLY[i++]="${2-}$c"
                        fi
                done
@@ -1184,13 +1184,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