Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-06-22 21:43:44 +0300
committerJunio C Hamano <gitster@pobox.com>2017-06-24 04:24:34 +0300
commitbf12fcdf5ec00e6b7d0978750df9e0146eb57c75 (patch)
tree5b71651780a3f276212c35f05e67c8a8c5c3358c /repository.h
parent639e30b5b2214c68c042215a279ac1fbb372d73d (diff)
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 <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.h')
-rw-r--r--repository.h4
1 files changed, 4 insertions, 0 deletions
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'.