From bf12fcdf5ec00e6b7d0978750df9e0146eb57c75 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Thu, 22 Jun 2017 11:43:44 -0700 Subject: submodule-config: store the_submodule_cache in the_repository Refactor how 'the_submodule_cache' is handled so that it can be stored inside of a repository object. Also migrate 'the_submodule_cache' to be stored in 'the_repository'. Signed-off-by: Brandon Williams Signed-off-by: Junio C Hamano --- repository.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'repository.h') diff --git a/repository.h b/repository.h index 3a41568aa0..c40738ceb8 100644 --- a/repository.h +++ b/repository.h @@ -3,6 +3,7 @@ struct config_set; struct index_state; +struct submodule_cache; struct repository { /* Environment */ @@ -50,6 +51,9 @@ struct repository { */ struct config_set *config; + /* Repository's submodule config as defined by '.gitmodules' */ + struct submodule_cache *submodule_cache; + /* * Repository's in-memory index. * 'repo_read_index()' can be used to populate 'index'. -- cgit v1.3