From: Brandon Williams Date: Tue, 18 Jul 2017 19:05:19 +0000 (-0700) Subject: repository: have the_repository use the_index X-Git-Tag: v2.15.0-rc0~179^2~8 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ba43964d47ac29eafafd8d475c299c51c8a1ca75 repository: have the_repository use the_index Have the index state which is stored in 'the_repository' be a pointer to the in-core index 'the_index'. This makes it easier to begin transitioning more parts of the code base to operate on a 'struct repository'. Signed-off-by: Brandon Williams Signed-off-by: Junio C Hamano --- diff --git a/repository.c b/repository.c index 8e60af1d5f..c0e0e0e7e7 100644 --- a/repository.c +++ b/repository.c @@ -4,7 +4,9 @@ #include "submodule-config.h" /* The main repository */ -static struct repository the_repo; +static struct repository the_repo = { + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &the_index, 0, 0 +}; struct repository *the_repository = &the_repo; static char *git_path_from_env(const char *envvar, const char *git_dir,