tag.h 422 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#ifndef TAG_H
#define TAG_H

#include "object.h"

extern const char *tag_type;

struct tag {
	struct object object;
	struct object *tagged;
	char *tag;
};

14
extern struct tag *lookup_tag(const unsigned char *sha1);
15
extern int parse_tag_buffer(struct tag *item, void *data, unsigned long size);
16
extern int parse_tag(struct tag *item);
17
extern struct object *deref_tag(struct object *, const char *, int);
18

19
#endif /* TAG_H */