2005-04-28 18:46:33 +04: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;
|
|
|
|
char *signature; /* not actually implemented */
|
|
|
|
};
|
|
|
|
|
2005-06-03 19:05:39 +04:00
|
|
|
extern struct tag *lookup_tag(const unsigned char *sha1);
|
2005-05-06 21:48:34 +04:00
|
|
|
extern int parse_tag_buffer(struct tag *item, void *data, unsigned long size);
|
2005-04-28 18:50:39 +04:00
|
|
|
extern int parse_tag(struct tag *item);
|
2005-11-03 02:19:13 +03:00
|
|
|
extern struct object *deref_tag(struct object *, const char *, int);
|
2005-04-28 18:50:39 +04:00
|
|
|
|
2005-04-28 18:46:33 +04:00
|
|
|
#endif /* TAG_H */
|