diff: avoid redundantly clearing a flag
[git/raj.git] / notes-cache.h
blobaeeee8409d4320644a1f618f5cd25b815be52f1c
1 #ifndef NOTES_CACHE_H
2 #define NOTES_CACHE_H
4 #include "notes.h"
6 struct notes_cache {
7 struct notes_tree tree;
8 char *validity;
9 };
11 void notes_cache_init(struct notes_cache *c, const char *name,
12 const char *validity);
13 int notes_cache_write(struct notes_cache *c);
15 char *notes_cache_get(struct notes_cache *c, struct object_id *oid, size_t
16 *outsize);
17 int notes_cache_put(struct notes_cache *c, struct object_id *oid,
18 const char *data, size_t size);
20 #endif /* NOTES_CACHE_H */