commit-graph: store graph in struct object_store
authorJonathan Tan <jonathantanmy@google.com>
Wed, 11 Jul 2018 22:42:41 +0000 (15:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jul 2018 22:47:48 +0000 (15:47 -0700)
commit8527750626f8a1b0fe641a5163760be054cc1d64
tree38cc0bee20fbe5e7da17212ae9594211a9ba00dd
parentc3756d5b7fc6e163032296aa6c10fad2589273dc
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>
commit-graph.c
object-store.h
object.c