Skip to content

Commit 260d585

Browse files
szedergitster
authored andcommitted
completion: use __gitcomp_nl() for completing refs
We do that almost everywhere, because it's faster for large number of refs, see a31e626 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bb85775 commit 260d585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ _git_branch ()
980980

981981
case "$cur" in
982982
--set-upstream-to=*)
983-
__gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
983+
__gitcomp_nl "$(__git_refs)" "" "${cur##--set-upstream-to=}"
984984
;;
985985
--*)
986986
__gitcomp "
@@ -1048,7 +1048,7 @@ _git_checkout ()
10481048

10491049
_git_cherry ()
10501050
{
1051-
__gitcomp "$(__git_refs)"
1051+
__gitcomp_nl "$(__git_refs)"
10521052
}
10531053

10541054
_git_cherry_pick ()

0 commit comments

Comments
 (0)