[PATCH 2/3] setup: have the_repository use the_index
- From
- Brandon Williams <bmwill@google.com>
- Date
- Jul 11, 2017, 22:04 UTC
- Message-ID
- <20170711220408.173269-3-bmwill@google.com>
- In-Reply-To
- <20170711220408.173269-1-bmwill@google.com>
Have the index state which is stored in 'the_repository' be a pointer to the in-core instead '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 <bmwill@google.com> --- setup.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/setup.c b/setup.c index 860507e1f..b370bf3c1 100644 --- a/setup.c +++ b/setup.c @@ -1123,6 +1123,7 @@ const char *setup_git_directory_gently(int *nongit_ok) setup_git_env(); } } + the_repository->index = &the_index; strbuf_release(&dir); strbuf_release(&gitdir);
-- 2.13.2.932.g7449e964c-goog