From: Dan McGee Date: Sun, 20 Apr 2008 19:34:07 GMT Subject: [PATCH] completion: allow 'git remote' subcommand completion Message-ID: <1208720047-5200-1-git-send-email-dpmcgee@gmail.com> In-Reply-To: <20080420192259.GI29771@spearce.org> After typing 'git remote ', the subcommand options were not shown. Fix it by adding the missing __gitcomp call. Signed-off-by: Dan McGee Acked-by: Shawn O. Pearce --- Resubmit per Shawn's comments- duh. I was just thinking backwards since remote has a prune subcommand. contrib/completion/git-completion.bash | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 3f78630..6012047 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 -- 1.5.5