summaryrefslogtreecommitdiff
path: root/tag.h
blob: efd4c7da67c1c185c45f4a54b0fe3dbcfcb4ef55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef TAG_H
#define TAG_H
 
#include "object.h"
 
extern const char *tag_type;
 
struct tag {
	struct object object;
	struct object *tagged;
	char *tag;
	timestamp_t date;
};
extern struct tag *lookup_tag(struct repository *r, const struct object_id *oid);
extern int parse_tag_buffer(struct repository *r, struct tag *item, const void *data, unsigned long size);
extern int parse_tag(struct tag *item);
extern void release_tag_memory(struct tag *t);
#define deref_tag(r, o, w, l) deref_tag_##r(o, w, l)
extern struct object *deref_tag_the_repository(struct object *, const char *, int);
extern struct object *deref_tag_noverify(struct object *);
extern int gpg_verify_tag(const struct object_id *oid,
		const char *name_to_report, unsigned flags);
 
#endif /* TAG_H */