{"thread":{"id":"49391","subject":"[PATCH] completion: support \"git fetch --multiple\"","startedAt":"2018-09-20T16:37:40Z","lastAt":"2018-09-20T16:37:40Z","messageCount":1,"participants":["Nguyễn Thái Ngọc Duy"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"358519","messageId":"20180920163733.20046-1-pclouds@gmail.com","threadId":"49391","inReplyTo":null,"subject":"[PATCH] completion: support \"git fetch --multiple\"","fromName":"Nguyễn Thái Ngọc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2018-09-20T16:37:33Z","receivedAt":"2018-09-20T16:37:40Z","isPatch":true,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"When --multiple is given, the remaining arguments are remote names,\nnot one remote followed by zero or more refspec. Detect this case,\ndisable refspec completion, and pretend no remote is seen in order to\ncomplete multiple of them.\n\nSigned-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>\n---\n contrib/completion/git-completion.bash | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex d63d2dffd4..a66bec966b 100644\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -943,6 +943,7 @@ __git_complete_remote_or_refspec ()\n \t\t\t*) ;;\n \t\t\tesac\n \t\t\t;;\n+\t\t--multiple) no_complete_refspec=1; break ;;\n \t\t-*) ;;\n \t\t*) remote=\"$i\"; break ;;\n \t\tesac\n-- \n2.19.0.rc0.337.ge906d732e7\n\n"}]}