summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-04-12 00:21:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-12 02:38:56 (GMT)
commit64a741619d27ede27788d2d444257635f4af8ffd (patch)
tree5885bcd8f939e2e638fe3b1e80c575de6558141e /refs
parent1f2e7ceabcc1559e5b3e49df91036d3106f727f4 (diff)
downloadgit-64a741619d27ede27788d2d444257635f4af8ffd.zip
git-64a741619d27ede27788d2d444257635f4af8ffd.tar.gz
git-64a741619d27ede27788d2d444257635f4af8ffd.tar.bz2
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>
Diffstat (limited to 'refs')
-rw-r--r--refs/files-backend.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index bec8e30..5c76a75 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -61,10 +61,6 @@ struct ref_lock {
struct object_id old_oid;
};
-/*
- * Future: need to be in "struct repository"
- * when doing a full libification.
- */
struct files_ref_store {
struct ref_store base;
unsigned int store_flags;