THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
541B

  1. #ifndef NOTES_CACHE_H
  2. #define NOTES_CACHE_H
  3. #include "notes.h"
  4. struct repository;
  5. struct notes_cache {
  6. struct notes_tree tree;
  7. char *validity;
  8. };
  9. void notes_cache_init(struct repository *r, struct notes_cache *c,
  10. const char *name, const char *validity);
  11. int notes_cache_write(struct notes_cache *c);
  12. char *notes_cache_get(struct notes_cache *c, struct object_id *oid, size_t
  13. *outsize);
  14. int notes_cache_put(struct notes_cache *c, struct object_id *oid,
  15. const char *data, size_t size);
  16. #endif /* NOTES_CACHE_H */