Skip to content

Commit

Permalink
Merge branch 'sg/completion-gitcomp-nl-for-refs'
Browse files Browse the repository at this point in the history
Code clean-up.

* sg/completion-gitcomp-nl-for-refs:
  completion: use __gitcomp_nl() for completing refs
  • Loading branch information
gitster committed Mar 26, 2015
2 parents 574ee8a + 260d585 commit 55a3b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/completion/git-completion.bash
Expand Up @@ -977,7 +977,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 "
Expand Down Expand Up @@ -1045,7 +1045,7 @@ _git_checkout ()

_git_cherry ()
{
__gitcomp "$(__git_refs)"
__gitcomp_nl "$(__git_refs)"
}

_git_cherry_pick ()
Expand Down

0 comments on commit 55a3b3c

Please sign in to comment.