1
0
mirror of https://github.com/git/git.git synced 2024-10-20 23:58:49 +02:00

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>
This commit is contained in:
Michael J Gruber 2010-11-10 12:17:29 +01:00 committed by Junio C Hamano
parent e10dfb62ee
commit 81536b2dfa

@ -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 ");