Code

completion: fix completion of git <TAB><TAB>
[git.git] / contrib / completion / git-completion.bash
index 88b1b3c7a002323f696723c161d88d3dd9766a95..652a47c772a4f251d4925118df74bb3e793a2988 100755 (executable)
@@ -496,7 +496,7 @@ __git_all_commands ()
                return
        fi
        local i IFS=" "$'\n'
-       for i in $(git help -a|egrep '^ ')
+       for i in $(git help -a|egrep '^  [a-zA-Z0-9]')
        do
                case $i in
                *--*)             : helper pattern;;