OSDN Git Service

builtin/tag: add --format argument for tag -v
authorLukas Puehringer <luk.puehringer@gmail.com>
Tue, 17 Jan 2017 23:37:21 +0000 (18:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Jan 2017 19:27:56 +0000 (11:27 -0800)
commit07d347cf9ac13c3d1746ae368f6e72afbe82dc15
treef524475e3690510b1b14d4929b48c54f21d6c274
parentff3c8c8f124b26559232857fd37b67a0dd99600d
builtin/tag: add --format argument for tag -v

Adding --format to git tag -v mutes the default output of the GPG
verification and instead prints the formatted tag object.
This allows callers to cross-check the tagname from refs/tags with
the tagname from the tag object header upon GPG verification.

The callback function for for_each_tag_name() didn't allow callers to
pass custom data to their callback functions. Add a new opaque pointer
to each_tag_name_fn's parameter to allow this.

Signed-off-by: Lukas Puehringer <luk.puehringer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-tag.txt
builtin/tag.c