blob: 7a0cb0070d46ba8c49d71029dc0704188805ea62 [file] [log] [blame]
Daniel Barkalow2636f612005-04-28 07:46:33 -07001#ifndef TAG_H
2#define TAG_H
3
4#include "object.h"
5
6extern const char *tag_type;
7
8struct tag {
9 struct object object;
10 struct object *tagged;
11 char *tag;
12 char *signature; /* not actually implemented */
13};
14
Jason McMullan5d6ccf52005-06-03 11:05:39 -040015extern struct tag *lookup_tag(const unsigned char *sha1);
Nicolas Pitrebd2c39f2005-05-06 13:48:34 -040016extern int parse_tag_buffer(struct tag *item, void *data, unsigned long size);
Linus Torvaldsd5e27682005-04-28 07:50:39 -070017extern int parse_tag(struct tag *item);
Junio C Hamano9534f402005-11-02 15:19:13 -080018extern struct object *deref_tag(struct object *, const char *, int);
Linus Torvaldsd5e27682005-04-28 07:50:39 -070019
Daniel Barkalow2636f612005-04-28 07:46:33 -070020#endif /* TAG_H */