diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-03-26 11:57:13 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-26 11:57:13 -0700 |
commit | 55a3b3c26eba7fae1fb9f7be37144b30b68fd8fe (patch) | |
tree | 0e4fc35346a7f43f0aff748197aea8492710ed24 /contrib | |
parent | 574ee8ae8636ffad8146e0f8e648b866dad725e6 (diff) | |
parent | 260d5850ad452adb7ac0ab70d0a5d0211bdd967f (diff) | |
download | git-55a3b3c26eba7fae1fb9f7be37144b30b68fd8fe.tar.gz |
Merge branch 'sg/completion-gitcomp-nl-for-refs'
Code clean-up.
* sg/completion-gitcomp-nl-for-refs:
completion: use __gitcomp_nl() for completing refs
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/git-completion.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 931eac29ad..fbe597232c 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -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 " @@ -1045,7 +1045,7 @@ _git_checkout () _git_cherry () { - __gitcomp "$(__git_refs)" + __gitcomp_nl "$(__git_refs)" } _git_cherry_pick () |