blob: 3ce8e7219244e1c2ca1c6bd31496e86a1dc25339 [file] [log] [blame]
Daniel Barkalow2636f612005-04-28 07:46:33 -07001#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;
Johannes Schindelindddbad72017-04-26 21:29:31 +020012 timestamp_t date;
Daniel Barkalow2636f612005-04-28 07:46:33 -070013};
Denton Liu55454422019-04-29 04:28:14 -040014struct tag *lookup_tag(struct repository *r, const struct object_id *oid);
15int parse_tag_buffer(struct repository *r, struct tag *item, const void *data, unsigned long size);
16int parse_tag(struct tag *item);
17void release_tag_memory(struct tag *t);
18struct object *deref_tag(struct repository *r, struct object *, const char *, int);
19struct object *deref_tag_noverify(struct object *);
20int gpg_verify_tag(const struct object_id *oid,
Denton Liuad6dad02019-04-29 04:28:23 -040021 const char *name_to_report, unsigned flags);
René Scharfedad3f062019-09-05 21:55:55 +020022struct object_id *get_tagged_oid(struct tag *tag);
Linus Torvaldsd5e27682005-04-28 07:50:39 -070023
Daniel Barkalow2636f612005-04-28 07:46:33 -070024#endif /* TAG_H */