mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 22:51:42 +02:00
_git: Complete fetchy refspecs correctly.
This commit is contained in:
parent
fe21e49a6d
commit
276a690a2e
1 changed files with 13 additions and 2 deletions
|
@ -5369,8 +5369,19 @@ __git_ref_specs_pushy () {
|
|||
|
||||
(( $+functions[__git_ref_specs_fetchy] )) ||
|
||||
__git_ref_specs_fetchy () {
|
||||
# TODO: this is wrong
|
||||
__git_ref_specs_pushy "$@"
|
||||
# TODO: This needs to deal with a lot more types of things.
|
||||
if compset -P '*:'; then
|
||||
__git_heads_local
|
||||
else
|
||||
compset -P '+'
|
||||
if compset -S ':*'; then
|
||||
# TODO: have the caller supply the correct remote name, restrict to refs/remotes/${that_remote}/* only
|
||||
__git_remote_branch_names_noprefix
|
||||
else
|
||||
# TODO: have the caller supply the correct remote name, restrict to refs/remotes/${that_remote}/* only
|
||||
__git_remote_branch_names_noprefix -qS :
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
(( $+functions[__git_ref_specs] )) ||
|
||||
|
|
Loading…
Reference in a new issue