diff options
author | Brandon Williams <bmwill@google.com> | 2017-06-22 11:43:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-23 18:24:34 -0700 |
commit | bf12fcdf5ec00e6b7d0978750df9e0146eb57c75 (patch) | |
tree | 5b71651780a3f276212c35f05e67c8a8c5c3358c /repository.h | |
parent | 639e30b5b2214c68c042215a279ac1fbb372d73d (diff) | |
download | git-bf12fcdf5ec00e6b7d0978750df9e0146eb57c75.tar.gz |
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.h | 4 |
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'. |