mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
repository.h: move declaration of the_index from cache.h
the_index is a global variable defined in repository.c; as such, its declaration feels better suited living in repository.h rather than cache.h. Move it. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
750324ddb8
commit
bc47f16db2
@@ -170,6 +170,9 @@ struct repository {
|
||||
};
|
||||
|
||||
extern struct repository *the_repository;
|
||||
#ifdef USE_THE_INDEX_VARIABLE
|
||||
extern struct index_state the_index;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Define a custom repository layout. Any field can be NULL, which
|
||||
|
||||
Reference in New Issue
Block a user