mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
40494: _git: Use slashes matchspec for references (as already used for branch names).
This commit is contained in:
parent
3afd12ae97
commit
ec1bdab023
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
2017-02-07 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
|
* 40494: Completion/Unix/Command/_git: Use slashes matchspec
|
||||||
|
for references (as already used for branch names).
|
||||||
|
|
||||||
2017-02-07 Daniel Shahaf <d.s@daniel.shahaf.name>
|
2017-02-07 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
* 40493/0002: Completion/Unix/Command/_git: _git-checkout:
|
* 40493/0002: Completion/Unix/Command/_git: _git-checkout:
|
||||||
|
|
|
||||||
|
|
@ -6481,9 +6481,10 @@ __git_references () {
|
||||||
_git_refs_cache_pwd=$PWD
|
_git_refs_cache_pwd=$PWD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_wanted references expl 'reference' compadd -a - _git_refs_cache
|
_wanted references expl 'reference' compadd -M 'r:|/=**' -a - _git_refs_cache
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ### currently unused; are some callers of __git_references supposed to call this function?
|
||||||
(( $+functions[__git_local_references] )) ||
|
(( $+functions[__git_local_references] )) ||
|
||||||
__git_local_references () {
|
__git_local_references () {
|
||||||
local expl
|
local expl
|
||||||
|
|
@ -6494,7 +6495,7 @@ __git_local_references () {
|
||||||
_git_local_refs_cache_pwd=$PWD
|
_git_local_refs_cache_pwd=$PWD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_wanted references expl 'reference' compadd -a - _git_local_refs_cache
|
_wanted references expl 'reference' compadd -M 'r:|/=**' -a - _git_local_refs_cache
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[__git_remote_references] )) ||
|
(( $+functions[__git_remote_references] )) ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue