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 <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael J Gruber committed
Nov 10, 2010 at 12:17 UTC
81536b2dfae5a2839b6f20b22cc814a3690e4704
1 file changed
+2
-2
builtin/tag.c
+2
-2
@@ -68,9 +68,9 @@ static int show_reference(const char *refname, const unsigned char *sha1,
68
return 0;
69
}
70
/* only take up to "lines" lines, and strip the signature */
71
+ size = parse_signature(buf, size);
72
for (i = 0, sp += 2;
72
- i < filter->lines && sp < buf + size &&
73
- prefixcmp(sp, PGP_SIGNATURE "\n");
73
+ i < filter->lines && sp < buf + size;
74
i++) {
75
if (i)
76
printf("\n ");