blob: 7a0cb0070d46ba8c49d71029dc0704188805ea62 [file] [log] [blame]
Daniel Barkalow2636f612005-04-28 14:46:331#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 15:05:3915extern struct tag *lookup_tag(const unsigned char *sha1);
Nicolas Pitrebd2c39f2005-05-06 17:48:3416extern int parse_tag_buffer(struct tag *item, void *data, unsigned long size);
Linus Torvaldsd5e27682005-04-28 14:50:3917extern int parse_tag(struct tag *item);
Junio C Hamano9534f402005-11-02 23:19:1318extern struct object *deref_tag(struct object *, const char *, int);
Linus Torvaldsd5e27682005-04-28 14:50:3919
Daniel Barkalow2636f612005-04-28 14:46:3320#endif /* TAG_H */