From: Jeff King Date: Tue, 17 Jan 2017 15:24:55 GMT Subject: Re: [PATCH v5 3/7] tag: add format specifier to gpg_verify_tag Message-ID: <20170117152455.k6zkeclsyawzpl2n@sigill.intra.peff.net> In-Reply-To: <20170115184705.10376-4-santiago@nyu.edu> On Sun, Jan 15, 2017 at 01:47:01PM -0500, santiago@nyu.edu wrote: > From: Lukas Puehringer > > Calling functions for gpg_verify_tag() may desire to print relevant > information about the header for further verification. Add an optional > format argument to print any desired information after GPG verification. Hrm. Maybe I am missing something, but what does: verify_and_format_tag(sha1, name, fmt, flags); get you over: gpg_verify_tag(sha1, name, flags); pretty_print_ref(name, sha1, fmt); ? The latter seems much more flexible, and I do not see how the verification step impacts the printing at all (or vice versa). I could understand it more if there were patches later in the series that somehow used the format and verification results together. But I didn't see that. -Peff