2005-04-28 16:46:33 +02:00
|
|
|
#ifndef TAG_H
|
|
|
|
#define TAG_H
|
|
|
|
|
|
|
|
#include "object.h"
|
|
|
|
|
|
|
|
extern const char *tag_type;
|
|
|
|
|
|
|
|
struct tag {
|
|
|
|
struct object object;
|
|
|
|
struct object *tagged;
|
|
|
|
char *tag;
|
2010-04-13 01:25:28 +02:00
|
|
|
unsigned long date;
|
2005-04-28 16:46:33 +02:00
|
|
|
};
|
|
|
|
|
2005-06-03 17:05:39 +02:00
|
|
|
extern struct tag *lookup_tag(const unsigned char *sha1);
|
2011-02-05 11:52:20 +01:00
|
|
|
extern int parse_tag_buffer(struct tag *item, const void *data, unsigned long size);
|
2005-04-28 16:50:39 +02:00
|
|
|
extern int parse_tag(struct tag *item);
|
2005-11-03 00:19:13 +01:00
|
|
|
extern struct object *deref_tag(struct object *, const char *, int);
|
2010-11-10 12:17:27 +01:00
|
|
|
extern size_t parse_signature(const char *buf, unsigned long size);
|
2005-04-28 16:50:39 +02:00
|
|
|
|
2005-04-28 16:46:33 +02:00
|
|
|
#endif /* TAG_H */
|