@matheusbsbs / matheus-bagliano / commits / f135e72d61
Fork 0

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

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Markus Heidelberg committed Jan 21, 2009 at 20:14 UTC f135e72d611ff6faf3d413a85f1620227d9f0705
1 file changed +2 -2
contrib/completion/git-completion.bash
+2 -2
@@ -1391,7 +1391,7 @@ _git_config ()
1391
1392 _git_remote ()
1393 {
1394 - local subcommands="add rm show prune update"
1394 + local subcommands="add rename rm show prune update"
1395 local subcommand="$(__git_find_subcommand "$subcommands")"
1396 if [ -z "$subcommand" ]; then
1397 __gitcomp "$subcommands"
@@ -1399,7 +1399,7 @@ _git_remote ()
1399 fi
1400
1401 case "$subcommand" in
1402 - rm|show|prune)
1402 + rename|rm|show|prune)
1403 __gitcomp "$(__git_remotes)"
1404 ;;
1405 update)