From: Michael J Gruber Date: Wed, 10 Nov 2010 11:17:29 +0000 (+0100) Subject: tag: factor out sig detection for tag display X-Git-Tag: v1.7.3.4~18^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=81536b2dfae5a2839b6f20b22cc814a3690e4704;p=git.git tag: factor out sig detection for tag display Use the factored out code for sig detection when displaying tags. Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano --- diff --git a/builtin/tag.c b/builtin/tag.c index 66feeb0c6..617a58f05 100644 --- a/builtin/tag.c +++ b/builtin/tag.c @@ -68,9 +68,9 @@ static int show_reference(const char *refname, const unsigned char *sha1, return 0; } /* only take up to "lines" lines, and strip the signature */ + size = parse_signature(buf, size); for (i = 0, sp += 2; - i < filter->lines && sp < buf + size && - prefixcmp(sp, PGP_SIGNATURE "\n"); + i < filter->lines && sp < buf + size; i++) { if (i) printf("\n ");