Skip to content

Commit b5619f6

Browse files
pcloudsgitster
authored andcommitted
completion: support "git fetch --multiple"
When --multiple is given, the remaining arguments are remote names, not one remote followed by zero or more refspec. Detect this case, disable refspec completion, and pretend no remote is seen in order to complete multiple of them. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 150f307 commit b5619f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,7 @@ __git_complete_remote_or_refspec ()
943943
*) ;;
944944
esac
945945
;;
946+
--multiple) no_complete_refspec=1; break ;;
946947
-*) ;;
947948
*) remote="$i"; break ;;
948949
esac

0 commit comments

Comments
 (0)