summaryrefslogtreecommitdiffstats
path: root/object-store.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2018-07-12 00:42:41 +0200
committerJunio C Hamano <gitster@pobox.com>2018-07-18 00:47:48 +0200
commit8527750626f8a1b0fe641a5163760be054cc1d64 (patch)
tree38cc0bee20fbe5e7da17212ae9594211a9ba00dd /object-store.h
parentcommit-graph: add free_commit_graph (diff)
downloadgit-8527750626f8a1b0fe641a5163760be054cc1d64.tar.xz
git-8527750626f8a1b0fe641a5163760be054cc1d64.zip
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 <jonathantanmy@google.com> 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 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
*