23841: complete tag hashes for git verify-tag.

This commit is contained in:
Clint Adams 2007-09-27 11:42:50 +00:00
parent af359d24a4
commit cdf6b4840c
2 changed files with 11 additions and 0 deletions

View file

@ -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

View file

@ -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] )) ||