summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-03-28 09:33:15 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-03-28 09:33:15 -0700
commit4eea8e3fa0c41137d7126a0ff262eb7a85991b90 (patch)
tree0e7a7af4aa8c52351bb628b845676f4de8dc82c4 /contrib/completion
parentMerge branch 'jk/simplify-csum-file-sha1fd-check' into maint (diff)
parentcompletion: use __gitcomp_nl() for completing refs (diff)
downloadtgif-4eea8e3fa0c41137d7126a0ff262eb7a85991b90.tar.xz
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
Diffstat (limited to 'contrib/completion')
-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 ()