From cdf6b4840c33c81f83e7f19e9c0ac68f0f893f99 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Thu, 27 Sep 2007 11:42:50 +0000 Subject: 23841: complete tag hashes for git verify-tag. --- Completion/Unix/Command/_git | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Completion') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index b89b0c97a..ade0b02f1 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -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] )) || -- cgit 1.4.1