completion: allow 'git remote' subcommand completion
authorDan McGee <dpmcgee@gmail.com>
Sun, 20 Apr 2008 19:34:07 +0000 (14:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Apr 2008 06:32:09 +0000 (23:32 -0700)
After typing 'git remote ', the subcommand options were not shown. Fix it
by adding the missing __gitcomp call.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 4d81963b1d00b1b4e874330a9e5933111f491def..fd654bdc9c97c59e9ba0d0164952d40188cbfea7 100755 (executable)
@@ -1052,6 +1052,7 @@ _git_remote ()
        local subcommands="add rm show prune update"
        local subcommand="$(__git_find_subcommand "$subcommands")"
        if [ -z "$subcommand" ]; then
+               __gitcomp "$subcommands"
                return
        fi