threads / patch / 17053

patchbash completion: add 'rename' subcommand to git-remote

Subject: [PATCH, resend] bash completion: add 'rename' subcommand to git-remote

## tl;dr

One message between Jan 8, 2009 and Jan 8, 2009. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Markus Heidelberg· Jan 8, 2009, 18:53 UTC · lore
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
 contrib/completion/git-completion.bash |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Show changes to contrib/completion/git-completion.bash +2 −2
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 187f3de..4717c93 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1369,7 +1369,7 @@ _git_config ()
 
 _git_remote ()
 {
-	local subcommands="add rm show prune update"
+	local subcommands="add rename rm show prune update"
 	local subcommand="$(__git_find_subcommand "$subcommands")"
 	if [ -z "$subcommand" ]; then
 		__gitcomp "$subcommands"
@@ -1377,7 +1377,7 @@ _git_remote ()
 	fi
 
 	case "$subcommand" in
-	rm|show|prune)
+	rename|rm|show|prune)
 		__gitcomp "$(__git_remotes)"
 		;;
 	update)
-- 
1.6.1.35.g0c23

← back to recent threads