mirror of
https://github.com/git/git.git
synced 2024-11-18 06:13:55 +01:00
e451d06bf3
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>
21 lines
443 B
C
21 lines
443 B
C
#ifndef TAG_H
|
|
#define TAG_H
|
|
|
|
#include "object.h"
|
|
|
|
extern const char *tag_type;
|
|
|
|
struct tag {
|
|
struct object object;
|
|
struct object *tagged;
|
|
char *tag;
|
|
unsigned long date;
|
|
};
|
|
|
|
extern struct tag *lookup_tag(const unsigned char *sha1);
|
|
extern int parse_tag_buffer(struct tag *item, void *data, unsigned long size);
|
|
extern int parse_tag(struct tag *item);
|
|
extern struct object *deref_tag(struct object *, const char *, int);
|
|
|
|
#endif /* TAG_H */
|