]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Update git-completion for new 'remote rm' option
authorDan McGee <dpmcgee@gmail.com>
Sun, 20 Jan 2008 06:54:57 +0000 (00:54 -0600)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 Jan 2008 07:06:02 +0000 (23:06 -0800)
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 9b0033d17c3759daca66349d6ceb75bdee47f939..0d33f9a3dc9d5a593ce2691ab850ba1e38aa32de 100755 (executable)
@@ -970,18 +970,18 @@ _git_remote ()
        while [ $c -lt $COMP_CWORD ]; do
                i="${COMP_WORDS[c]}"
                case "$i" in
-               add|show|prune|update) command="$i"; break ;;
+               add|rm|show|prune|update) command="$i"; break ;;
                esac
                c=$((++c))
        done
 
        if [ $c -eq $COMP_CWORD -a -z "$command" ]; then
-               __gitcomp "add show prune update"
+               __gitcomp "add rm show prune update"
                return
        fi
 
        case "$command" in
-       show|prune)
+       rm|show|prune)
                __gitcomp "$(__git_remotes)"
                ;;
        update)