Skip to content

Commit a3b811a

Browse files
toofishesgitster
authored andcommitted
Update git-completion for new 'remote rm' option
Signed-off-by: Dan McGee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 233808d commit a3b811a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/completion/git-completion.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -970,18 +970,18 @@ _git_remote ()
970970
while [ $c -lt $COMP_CWORD ]; do
971971
i="${COMP_WORDS[c]}"
972972
case "$i" in
973-
add|show|prune|update) command="$i"; break ;;
973+
add|rm|show|prune|update) command="$i"; break ;;
974974
esac
975975
c=$((++c))
976976
done
977977

978978
if [ $c -eq $COMP_CWORD -a -z "$command" ]; then
979-
__gitcomp "add show prune update"
979+
__gitcomp "add rm show prune update"
980980
return
981981
fi
982982

983983
case "$command" in
984-
show|prune)
984+
rm|show|prune)
985985
__gitcomp "$(__git_remotes)"
986986
;;
987987
update)

0 commit comments

Comments
 (0)