Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sg/completion-gitcomp-nl-for-refs' into maint
author
Junio C Hamano
<gitster@pobox.com>
Sat, 28 Mar 2015 16:33:15 +0000
(09:33 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 28 Mar 2015 16:33:15 +0000
(09:33 -0700)
Code clean-up.
* sg/completion-gitcomp-nl-for-refs:
completion: use __gitcomp_nl() for completing refs
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
(from parent 1:
a070d62
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 485619c2603e15222605bd3f19fa78bd2001dc5b..661a8294dac162f0e50ccfe588847bb45b572143 100644
(file)
--- 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 ()