summaryrefslogtreecommitdiff
path: root/object-store.h
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-01-06 16:45:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-08 17:40:19 (GMT)
commitd4e19e516325e211cedb070a487453ad2d1043be (patch)
treeaab53eee02f9c5219df3d85060fc9cdff9763fe7 /object-store.h
parent0000d6543f1c2ceea017161a2807167cdfbf8c0b (diff)
downloadgit-d4e19e516325e211cedb070a487453ad2d1043be.zip
git-d4e19e516325e211cedb070a487453ad2d1043be.tar.gz
git-d4e19e516325e211cedb070a487453ad2d1043be.tar.bz2
object-store: factor out odb_clear_loose_cache()
Add and use a function for emptying the loose object cache, so callers don't have to know any of its implementation details. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-store.h')
-rw-r--r--object-store.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/object-store.h b/object-store.h
index 7236c57..709bf85 100644
--- a/object-store.h
+++ b/object-store.h
@@ -61,6 +61,9 @@ void odb_load_loose_cache(struct object_directory *odb, int subdir_nr);
struct oid_array *odb_loose_cache(struct object_directory *odb,
const struct object_id *oid);
+/* Empty the loose object cache for the specified object directory. */
+void odb_clear_loose_cache(struct object_directory *odb);
+
struct packed_git {
struct packed_git *next;
struct list_head mru;