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>
Nguyễn Thái Ngọc Duy committed
Sep 20, 2018 at 18:37 UTC
b5619f6d2b72b0c06957338d279f684f9c3e45cd
1 file changed
+1
contrib/completion/git-completion.bash
+1
@@ -943,6 +943,7 @@ __git_complete_remote_or_refspec ()
943
*) ;;
944
esac
945
;;
946
+ --multiple) no_complete_refspec=1; break ;;
947
-*) ;;
948
*) remote="$i"; break ;;
949
esac