gpg: centralize printing signature buffers
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 21 Jun 2015 23:14:41 +0000 (23:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jun 2015 21:20:47 +0000 (14:20 -0700)
commitca194d50b84b53a0b711fef46d1a47657ec5da41
treeb1218e292a895da641a1faa2c7b524de36ea039d
parent434060ec6d9bf50f095db901da3fb9b557e11df1
gpg: centralize printing signature buffers

The code to handle printing of signature data from a struct
signature_check is very similar between verify-commit and verify-tag.
Place this in a single function.  verify-tag retains its special case
behavior of printing the tag even when no valid signature is found.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/verify-commit.c
builtin/verify-tag.c
gpg-interface.c
gpg-interface.h