login
Header Space

 
 

[PATCH] completion: allow 'git remote' subcommand completion

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: Dan McGee <dpmcgee@...>
Date: Sunday, April 20, 2008 - 3:34 pm

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>
---

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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] completion: remove use of dashed git commands, Shawn O. Pearce, (Sun Apr 20, 3:20 pm)
Re: [PATCH] completion: remove use of dashed git commands, Johannes Schindelin, (Sun Apr 20, 1:43 pm)
Re: [PATCH] completion: remove use of dashed git commands, Junio C Hamano, (Sun Apr 20, 1:51 pm)
Re: [PATCH] completion: remove use of dashed git commands, Johannes Schindelin, (Sun Apr 20, 1:54 pm)
[PATCH] completion: allow 'git remote' subcommand completion, Dan McGee, (Sun Apr 20, 3:34 pm)
speck-geostationary