diff options
author | Michael J Gruber <git@drmicha.warpmail.net> | 2010-11-10 12:17:29 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-10 09:40:34 -0800 |
commit | 81536b2dfae5a2839b6f20b22cc814a3690e4704 (patch) | |
tree | 5db18e090d6391812c0bff72b6427d3443d9756b /builtin | |
parent | e10dfb62ee21a3970ccfe44f30f97fcd6457bb78 (diff) | |
download | git-81536b2dfae5a2839b6f20b22cc814a3690e4704.tar.gz |
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>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/tag.c b/builtin/tag.c index 66feeb0c64..617a58f058 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 "); |