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

Update git-completion for new 'remote rm' option

Signed-off-by: Dan McGee <dpmcgee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Dan McGee committed Jan 20, 2008 at 00:54 UTC a3b811a4914cf02bb25662e330a067c1b0ddbc75
1 file changed +3 -3
contrib/completion/git-completion.bash
+3 -3
@@ -970,18 +970,18 @@ _git_remote ()
970 while [ $c -lt $COMP_CWORD ]; do
971 i="${COMP_WORDS[c]}"
972 case "$i" in
973 - add|show|prune|update) command="$i"; break ;;
973 + add|rm|show|prune|update) command="$i"; break ;;
974 esac
975 c=$((++c))
976 done
977
978 if [ $c -eq $COMP_CWORD -a -z "$command" ]; then
979 - __gitcomp "add show prune update"
979 + __gitcomp "add rm show prune update"
980 return
981 fi
982
983 case "$command" in
984 - show|prune)
984 + rm|show|prune)
985 __gitcomp "$(__git_remotes)"
986 ;;
987 update)