mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
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 <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3f13877595
commit
ba43964d47
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user