summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Dan McGee <dpmcgee@gmail.com>2008-04-20 14:34:07 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-04-21 23:32:09 -0700
commit3903c6189d0d596a0fef47edab437aa047e812fa (patch)
tree7fe46f13839669b56193ef45e85a474b42d14aa8
parentSpelling fixes in the gitweb documentation (diff)
downloadtgif-3903c6189d0d596a0fef47edab437aa047e812fa.tar.xz
completion: allow 'git remote' subcommand completion
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>
-rwxr-xr-xcontrib/completion/git-completion.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 4d81963b1d..fd654bdc9c 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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