]> git.ipfire.org Git - thirdparty/git.git/blame - notes-cache.h
path.c: don't call the match function without value in trie_find()
[thirdparty/git.git] / notes-cache.h
CommitLineData
a941d5e3
JK
1#ifndef NOTES_CACHE_H
2#define NOTES_CACHE_H
3
4#include "notes.h"
5
bd7ad45b
NTND
6struct repository;
7
a941d5e3
JK
8struct notes_cache {
9 struct notes_tree tree;
10 char *validity;
11};
12
bd7ad45b
NTND
13void notes_cache_init(struct repository *r, struct notes_cache *c,
14 const char *name, const char *validity);
a941d5e3
JK
15int notes_cache_write(struct notes_cache *c);
16
569aa376 17char *notes_cache_get(struct notes_cache *c, struct object_id *oid, size_t
a941d5e3 18 *outsize);
569aa376 19int notes_cache_put(struct notes_cache *c, struct object_id *oid,
a941d5e3
JK
20 const char *data, size_t size);
21
22#endif /* NOTES_CACHE_H */