summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-28 09:33:15 -0700
committerJunio C Hamano <gitster@pobox.com>2015-03-28 09:33:15 -0700
commit4eea8e3fa0c41137d7126a0ff262eb7a85991b90 (patch)
tree0e7a7af4aa8c52351bb628b845676f4de8dc82c4
parenta070d621ed8e84a06ca6b710560c691dbf475b4a (diff)
parent260d5850ad452adb7ac0ab70d0a5d0211bdd967f (diff)
downloadgit-4eea8e3fa0c41137d7126a0ff262eb7a85991b90.tar.gz
Merge branch 'sg/completion-gitcomp-nl-for-refs' into maint
Code clean-up. * sg/completion-gitcomp-nl-for-refs: completion: use __gitcomp_nl() for completing refs
-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 485619c260..661a8294da 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 ()