{"thread":{"id":"38884","subject":"[PATCH] completion: use __gitcomp_nl() for completing refs","startedAt":"2015-03-22T12:03:11Z","lastAt":"2015-03-22T12:03:11Z","messageCount":1,"participants":["SZEDER Gábor"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"258291","messageId":"1427025791-51676-1-git-send-email-szeder@ira.uka.de","threadId":"38884","inReplyTo":null,"subject":"[PATCH] completion: use __gitcomp_nl() for completing refs","fromName":"SZEDER Gábor","fromEmail":"szeder@ira.uka.de","sentAt":"2015-03-22T12:03:11Z","receivedAt":"2015-03-22T12:03:11Z","isPatch":true,"sender":{"key":"szeder.dev@gmail.com","avatar":"https://avatars.githubusercontent.com/u/116324?v=4"},"body":"We do that almost everywhere, because it's faster for large number of\nrefs, see a31e62629 (completion: optimize refs completion, 2011-10-15).\nThese were the last two places where we still used __gitcomp() for\ncompleting refs.\n\nSigned-off-by: SZEDER Gábor <szeder@ira.uka.de>\n---\n contrib/completion/git-completion.bash | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 731c289..be85438 100644\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -977,7 +977,7 @@ _git_branch ()\n \n \tcase \"$cur\" in\n \t--set-upstream-to=*)\n-\t\t__gitcomp \"$(__git_refs)\" \"\" \"${cur##--set-upstream-to=}\"\n+\t\t__gitcomp_nl \"$(__git_refs)\" \"\" \"${cur##--set-upstream-to=}\"\n \t\t;;\n \t--*)\n \t\t__gitcomp \"\n@@ -1045,7 +1045,7 @@ _git_checkout ()\n \n _git_cherry ()\n {\n-\t__gitcomp \"$(__git_refs)\"\n+\t__gitcomp_nl \"$(__git_refs)\"\n }\n \n _git_cherry_pick ()\n-- \n1.9.5.msysgit.0\n"}]}