builtin/update-index: convert to using the_hash_algo
[git.git] / tag.h
blob9057d76a50639d65aae1340b752d2daa7dc67aa9
1 #ifndef TAG_H
2 #define TAG_H
4 #include "object.h"
6 extern const char *tag_type;
8 struct tag {
9 struct object object;
10 struct object *tagged;
11 char *tag;
12 timestamp_t date;
15 extern struct tag *lookup_tag(const struct object_id *oid);
16 extern int parse_tag_buffer(struct tag *item, const void *data, unsigned long size);
17 extern int parse_tag(struct tag *item);
18 extern void release_tag_memory(struct tag *t);
19 extern struct object *deref_tag(struct object *, const char *, int);
20 extern struct object *deref_tag_noverify(struct object *);
21 extern int gpg_verify_tag(const struct object_id *oid,
22 const char *name_to_report, unsigned flags);
24 #endif /* TAG_H */