Skip to content

Commit 81536b2

Browse files
Michael J Grubergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e10dfb6 commit 81536b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/tag.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ static int show_reference(const char *refname, const unsigned char *sha1,
6868
return 0;
6969
}
7070
/* only take up to "lines" lines, and strip the signature */
71+
size = parse_signature(buf, size);
7172
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;
7474
i++) {
7575
if (i)
7676
printf("\n ");

0 commit comments

Comments
 (0)