refs: store the main ref store inside the repository struct
commit64a741619d27ede27788d2d444257635f4af8ffd
authorStefan Beller <sbeller@google.com>
Thu, 12 Apr 2018 00:21:14 +0000 (11 17:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Apr 2018 02:38:56 +0000 (12 11:38 +0900)
tree5885bcd8f939e2e638fe3b1e80c575de6558141e
parent1f2e7ceabcc1559e5b3e49df91036d3106f727f4
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 <mhagger@alum.mit.edu>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs.h
refs/files-backend.c
repository.h