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@xxxxxxxxxx> --- 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