Skip to content

Commit 55a3b3c

Browse files
committed
Merge branch 'sg/completion-gitcomp-nl-for-refs'
Code clean-up. * sg/completion-gitcomp-nl-for-refs: completion: use __gitcomp_nl() for completing refs
2 parents 574ee8a + 260d585 commit 55a3b3c

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
@@ -977,7 +977,7 @@ _git_branch ()
977977

978978
case "$cur" in
979979
--set-upstream-to=*)
980-
__gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
980+
__gitcomp_nl "$(__git_refs)" "" "${cur##--set-upstream-to=}"
981981
;;
982982
--*)
983983
__gitcomp "
@@ -1045,7 +1045,7 @@ _git_checkout ()
10451045

10461046
_git_cherry ()
10471047
{
1048-
__gitcomp "$(__git_refs)"
1048+
__gitcomp_nl "$(__git_refs)"
10491049
}
10501050

10511051
_git_cherry_pick ()

0 commit comments

Comments
 (0)