summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2015-03-22 12:03:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-22 23:41:12 (GMT)
commit260d5850ad452adb7ac0ab70d0a5d0211bdd967f (patch)
tree456d6f9fb8ff2a9ed319e2952746c7addddcc707 /contrib
parentbb8577532add843833ebf8b5324f94f84cb71ca0 (diff)
downloadgit-260d5850ad452adb7ac0ab70d0a5d0211bdd967f.zip
git-260d5850ad452adb7ac0ab70d0a5d0211bdd967f.tar.gz
git-260d5850ad452adb7ac0ab70d0a5d0211bdd967f.tar.bz2
completion: use __gitcomp_nl() for completing refs
We do that almost everywhere, because it's faster for large number of refs, see a31e62629 (completion: optimize refs completion, 2011-10-15). These were the last two places where we still used __gitcomp() for completing refs. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-completion.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8cfee95..05a3aa4 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -980,7 +980,7 @@ _git_branch ()
case "$cur" in
--set-upstream-to=*)
- __gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
+ __gitcomp_nl "$(__git_refs)" "" "${cur##--set-upstream-to=}"
;;
--*)
__gitcomp "
@@ -1048,7 +1048,7 @@ _git_checkout ()
_git_cherry ()
{
- __gitcomp "$(__git_refs)"
+ __gitcomp_nl "$(__git_refs)"
}
_git_cherry_pick ()