aboutsummaryrefslogtreecommitdiffstats
path: root/notes-cache.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-11-10 06:49:06 +0100
committerJunio C Hamano <gitster@pobox.com>2018-11-12 14:50:06 +0900
commitbd7ad45b64bf8b5a5256bd1eeb3907f8516244a8 (patch)
treecdd5fe9c0cf00859fc627d7c0f2bfa28885c8bf3 /notes-cache.h
parent363df5572c3068d294d66c61025b377712e957c9 (diff)
downloadgit-bd7ad45b64bf8b5a5256bd1eeb3907f8516244a8.tar.gz
notes-cache.c: remove the_repository references
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes-cache.h')
-rw-r--r--notes-cache.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/notes-cache.h b/notes-cache.h
index aeeee8409d..56f8c98e24 100644
--- a/notes-cache.h
+++ b/notes-cache.h
@@ -3,13 +3,15 @@
#include "notes.h"
+struct repository;
+
struct notes_cache {
struct notes_tree tree;
char *validity;
};
-void notes_cache_init(struct notes_cache *c, const char *name,
- const char *validity);
+void notes_cache_init(struct repository *r, struct notes_cache *c,
+ const char *name, const char *validity);
int notes_cache_write(struct notes_cache *c);
char *notes_cache_get(struct notes_cache *c, struct object_id *oid, size_t