1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

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

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