summaryrefslogtreecommitdiffstats
path: root/tag.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-04-13 01:25:28 +0200
committerJunio C Hamano <gitster@pobox.com>2010-04-13 06:45:17 +0200
commite451d06bf39df35d1106ad9bde5e38505533d805 (patch)
tree9fe1f7b4015e3fa24f51eed98166edbb7df384a3 /tag.h
parenttag.c: Refactor parse_tag_buffer to be saner to program (diff)
downloadgit-e451d06bf39df35d1106ad9bde5e38505533d805.tar.xz
git-e451d06bf39df35d1106ad9bde5e38505533d805.zip
tag.c: Parse tagger date (if present)
Just like with committer dates, we parse the tagger date into the struct tag so its available for further downstream processing. However since the tagger header was not introduced until Git 0.99.1 we must consider it optional. For tags missing this header we use the default date of 0. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tag.h')
-rw-r--r--tag.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tag.h b/tag.h
index c437890f79..47662724a6 100644
--- a/tag.h
+++ b/tag.h
@@ -9,6 +9,7 @@ struct tag {
struct object object;
struct object *tagged;
char *tag;
+ unsigned long date;
};
extern struct tag *lookup_tag(const unsigned char *sha1);