Browse Source

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>
maint
Michael J Gruber 14 years ago committed by Junio C Hamano
parent
commit
81536b2dfa
  1. 4
      builtin/tag.c

4
builtin/tag.c

@ -68,9 +68,9 @@ static int show_reference(const char *refname, const unsigned char *sha1, @@ -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 ");

Loading…
Cancel
Save