mirror of
https://github.com/zsh-users/zsh
synced 2024-10-01 21:54:34 +00:00
23841: complete tag hashes for git verify-tag.
This commit is contained in:
parent
af359d24a4
commit
cdf6b4840c
|
@ -1,3 +1,8 @@
|
|||
2007-09-25 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 23841: Completion/Unix/Command/_git: complete tag hashes for git
|
||||
verify-tag.
|
||||
|
||||
2007-09-26 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* users/11883: Src/init.c: "return" at top level caused
|
||||
|
|
|
@ -2676,6 +2676,12 @@ __git_signoff_file () {
|
|||
|
||||
(( $+functions[__git_tag_ids] )) ||
|
||||
__git_tag_ids () {
|
||||
local -a refs
|
||||
|
||||
refs=(${${(f)"$(_call_program tag_ids git ls-remote --tags ./. 2>/dev/null)"}%$'\t'*})
|
||||
__git_command_successful || return
|
||||
|
||||
_wanted tag_id expl 'tag object hash' compadd - $refs
|
||||
}
|
||||
|
||||
(( $+functions[__git_heads_or_tags] )) ||
|
||||
|
|
Loading…
Reference in a new issue