aboutsummaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.bash
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-26 11:57:13 -0700
committerJunio C Hamano <gitster@pobox.com>2015-03-26 11:57:13 -0700
commit55a3b3c26eba7fae1fb9f7be37144b30b68fd8fe (patch)
tree0e4fc35346a7f43f0aff748197aea8492710ed24 /contrib/completion/git-completion.bash
parent574ee8ae8636ffad8146e0f8e648b866dad725e6 (diff)
parent260d5850ad452adb7ac0ab70d0a5d0211bdd967f (diff)
downloadgit-55a3b3c26eba7fae1fb9f7be37144b30b68fd8fe.tar.gz
git-55a3b3c26eba7fae1fb9f7be37144b30b68fd8fe.tar.xz
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/completion/git-completion.bash')
-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 931eac29a..fbe597232 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 ()