Browse Source

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>
maint
Dan McGee 17 years ago committed by Junio C Hamano
parent
commit
3903c6189d
  1. 1
      contrib/completion/git-completion.bash

1
contrib/completion/git-completion.bash

@ -1052,6 +1052,7 @@ _git_remote () @@ -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


Loading…
Cancel
Save