From 8527750626f8a1b0fe641a5163760be054cc1d64 Mon Sep 17 00:00:00 2001 From: Jonathan Tan Date: Wed, 11 Jul 2018 15:42:41 -0700 Subject: commit-graph: store graph in struct object_store Instead of storing commit graphs in static variables, store them in struct object_store. There are no changes to the signatures of existing functions - they all still only support the_repository, and support for other instances of struct repository will be added in a subsequent commit. Signed-off-by: Jonathan Tan Signed-off-by: Junio C Hamano --- object-store.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'object-store.h') diff --git a/object-store.h b/object-store.h index 0e13543bab..e481f7ad41 100644 --- a/object-store.h +++ b/object-store.h @@ -106,6 +106,9 @@ struct raw_object_store { */ struct oidmap *replace_map; + struct commit_graph *commit_graph; + unsigned commit_graph_attempted : 1; /* if loading has been attempted */ + /* * private data * -- cgit v1.2.1