From 64a741619d27ede27788d2d444257635f4af8ffd Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Wed, 11 Apr 2018 17:21:14 -0700 Subject: refs: store the main ref store inside the repository struct This moves the 'main_ref_store', which was a global variable in refs.c into the repository struct. This patch does not deal with the parts in the refs subsystem which deal with the submodules there. A later patch needs to get rid of the submodule exposure in the refs API, such as 'get_submodule_ref_store(path)'. Acked-by: Michael Haggerty Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- repository.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'repository.h') diff --git a/repository.h b/repository.h index 09df94a472..e6e00f541b 100644 --- a/repository.h +++ b/repository.h @@ -26,6 +26,9 @@ struct repository { */ struct raw_object_store *objects; + /* The store in which the refs are held. */ + struct ref_store *refs; + /* * Path to the repository's graft file. * Cannot be NULL after initialization. -- cgit v1.2.3