builtin/verify-tag: add --format to verify-tag
commitff3c8c8f124b26559232857fd37b67a0dd99600d
authorSantiago Torres <santiago@nyu.edu>
Tue, 17 Jan 2017 23:37:20 +0000 (17 18:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Jan 2017 00:10:22 +0000 (17 16:10 -0800)
treede82702fdd1615696d3e33c3b699e20be0346cc4
parent2111aa794bb420f767895682232b494d3461ab31
builtin/verify-tag: add --format to verify-tag

Callers of verify-tag may want to cross-check the tagname from refs/tags
with the tagname from the tag object header upon GPG verification. This
is to avoid tag refs that point to an incorrect object.

Add a --format parameter to git verify-tag to print the formatted tag
object header in addition to or instead of the --verbose or --raw GPG
verification output.

Signed-off-by: Santiago Torres <santiago@nyu.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-verify-tag.txt
builtin/verify-tag.c