bash completion: add 'rename' subcommand to git-remote
authorMarkus Heidelberg <markus.heidelberg@web.de>
Wed, 21 Jan 2009 19:14:55 +0000 (20:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Jan 2009 20:23:23 +0000 (12:23 -0800)
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
index a1298c4f9684a014067ba89a74977f48ac3e7bb9..703f4c2e90b034a996d993632a81553de02ceda8 100755 (executable)
@@ -1391,7 +1391,7 @@ _git_config ()
 
 _git_remote ()
 {
-       local subcommands="add rm show prune update"
+       local subcommands="add rename rm show prune update"
        local subcommand="$(__git_find_subcommand "$subcommands")"
        if [ -z "$subcommand" ]; then
                __gitcomp "$subcommands"
@@ -1399,7 +1399,7 @@ _git_remote ()
        fi
 
        case "$subcommand" in
-       rm|show|prune)
+       rename|rm|show|prune)
                __gitcomp "$(__git_remotes)"
                ;;
        update)