mirror of
https://github.com/git/git
synced 2024-07-17 11:07:55 +00:00
Merge branch 'sg/completion-gitcomp-nl-for-refs'
Code clean-up. * sg/completion-gitcomp-nl-for-refs: completion: use __gitcomp_nl() for completing refs
This commit is contained in:
commit
55a3b3c26e
|
@ -977,7 +977,7 @@ _git_branch ()
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
--set-upstream-to=*)
|
--set-upstream-to=*)
|
||||||
__gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
|
__gitcomp_nl "$(__git_refs)" "" "${cur##--set-upstream-to=}"
|
||||||
;;
|
;;
|
||||||
--*)
|
--*)
|
||||||
__gitcomp "
|
__gitcomp "
|
||||||
|
@ -1045,7 +1045,7 @@ _git_checkout ()
|
||||||
|
|
||||||
_git_cherry ()
|
_git_cherry ()
|
||||||
{
|
{
|
||||||
__gitcomp "$(__git_refs)"
|
__gitcomp_nl "$(__git_refs)"
|
||||||
}
|
}
|
||||||
|
|
||||||
_git_cherry_pick ()
|
_git_cherry_pick ()
|
||||||
|
|
Loading…
Reference in a new issue