diff options
author | Michael J Gruber <git@drmicha.warpmail.net> | 2010-11-10 11:17:29 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-10 17:40:34 (GMT) |
commit | 81536b2dfae5a2839b6f20b22cc814a3690e4704 (patch) | |
tree | 5db18e090d6391812c0bff72b6427d3443d9756b | |
parent | e10dfb62ee21a3970ccfe44f30f97fcd6457bb78 (diff) | |
download | git-81536b2dfae5a2839b6f20b22cc814a3690e4704.zip git-81536b2dfae5a2839b6f20b22cc814a3690e4704.tar.gz git-81536b2dfae5a2839b6f20b22cc814a3690e4704.tar.bz2 |
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>
-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 66feeb0..617a58f 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 "); |