aboutsummaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-02 15:30:47 -0700
committerJunio C Hamano <gitster@pobox.com>2018-08-02 15:30:47 -0700
commit78a72ad4f8fa91adc876b2fc4b18fd370e43136d (patch)
treea00b516dce8736567e679878f1b00966ef705f4a /object.c
parentcfec6133cfcd97a23ca29c7d0ad8d2961796dd52 (diff)
parentdade47c06cf849b0ca180a8e6383b55ea6f75812 (diff)
downloadgit-78a72ad4f8fa91adc876b2fc4b18fd370e43136d.tar.xz
Merge branch 'jt/commit-graph-per-object-store'
The singleton commit-graph in-core instance is made per in-core repository instance. * jt/commit-graph-per-object-store: commit-graph: add repo arg to graph readers commit-graph: store graph in struct object_store commit-graph: add free_commit_graph commit-graph: add missing forward declaration object-store: add missing include commit-graph: refactor preparing commit graph
Diffstat (limited to 'object.c')
-rw-r--r--object.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/object.c b/object.c
index b0faab85d4..e2c112cc1a 100644
--- a/object.c
+++ b/object.c
@@ -9,6 +9,7 @@
#include "alloc.h"
#include "object-store.h"
#include "packfile.h"
+#include "commit-graph.h"
unsigned int get_max_object_index(void)
{
@@ -507,6 +508,10 @@ void raw_object_store_clear(struct raw_object_store *o)
oidmap_free(o->replace_map, 1);
FREE_AND_NULL(o->replace_map);
+ free_commit_graph(o->commit_graph);
+ o->commit_graph = NULL;
+ o->commit_graph_attempted = 0;
+
free_alt_odbs(o);
o->alt_odb_tail = NULL;