diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-09-20 18:37:33 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-21 09:34:43 -0700 |
commit | b5619f6d2b72b0c06957338d279f684f9c3e45cd (patch) | |
tree | 81015ff61b6ba1107a3b5f3ab211607eef80f2d4 /contrib/completion | |
parent | Merge branch 'ab/fetch-tags-noclobber' (diff) | |
download | tgif-b5619f6d2b72b0c06957338d279f684f9c3e45cd.tar.xz |
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 <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rw-r--r-- | contrib/completion/git-completion.bash | 1 |
1 files changed, 1 insertions, 0 deletions
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 |