tag: add repository argument to lookup_tag
[git/git.git] / tag.h
CommitLineData
2636f614
DB
1#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;
dddbad72 12 timestamp_t date;
2636f614 13};
ce71efb7
SB
14#define lookup_tag(r, o) lookup_tag_##r(o)
15extern struct tag *lookup_tag_the_repository(const struct object_id *oid);
cf7b1cad 16extern int parse_tag_buffer(struct tag *item, const void *data, unsigned long size);
d5e27688 17extern int parse_tag(struct tag *item);
14ba97f8 18extern void release_tag_memory(struct tag *t);
9534f40b 19extern struct object *deref_tag(struct object *, const char *, int);
90108a24 20extern struct object *deref_tag_noverify(struct object *);
84571760 21extern int gpg_verify_tag(const struct object_id *oid,
45a227ef 22 const char *name_to_report, unsigned flags);
d5e27688 23
2636f614 24#endif /* TAG_H */