tag.h 727 B

12345678910111213141516171819202122232425
  1. #ifndef TAG_H
  2. #define TAG_H
  3. #include "object.h"
  4. extern const char *tag_type;
  5. struct tag {
  6. struct object object;
  7. struct object *tagged;
  8. char *tag;
  9. timestamp_t date;
  10. };
  11. struct tag *lookup_tag(struct repository *r, const struct object_id *oid);
  12. int parse_tag_buffer(struct repository *r, struct tag *item, const void *data, unsigned long size);
  13. int parse_tag(struct tag *item);
  14. void release_tag_memory(struct tag *t);
  15. struct object *deref_tag(struct repository *r, struct object *, const char *, int);
  16. struct object *deref_tag_noverify(struct object *);
  17. int gpg_verify_tag(const struct object_id *oid,
  18. const char *name_to_report, unsigned flags);
  19. struct object_id *get_tagged_oid(struct tag *tag);
  20. #endif /* TAG_H */