From: Nguyễn Thái Ngọc Duy Date: Thu, 20 Sep 2018 16:37:33 +0000 (+0200) Subject: completion: support "git fetch --multiple" X-Git-Tag: v2.20.0-rc0~165^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b5619f6d2b72b0c06957338d279f684f9c3e45cd 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 Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index d63d2dffd4..a66bec966b 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -943,6 +943,7 @@ __git_complete_remote_or_refspec () *) ;; esac ;; + --multiple) no_complete_refspec=1; break ;; -*) ;; *) remote="$i"; break ;; esac