]> git.ipfire.org Git - thirdparty/git.git/commit - contrib/completion/git-completion.bash
completion: support "git fetch --multiple"
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 20 Sep 2018 16:37:33 +0000 (18:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Sep 2018 16:34:43 +0000 (09:34 -0700)
commitb5619f6d2b72b0c06957338d279f684f9c3e45cd
tree81015ff61b6ba1107a3b5f3ab211607eef80f2d4
parent150f307afc13961b0322ad0e7205a7b193368586
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>
contrib/completion/git-completion.bash