From bc47f16db2bccb0398edd93af27086f35a3cb97a Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Tue, 16 May 2023 06:33:55 +0000 Subject: 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 Signed-off-by: Junio C Hamano --- repository.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'repository.h') diff --git a/repository.h b/repository.h index 655a95026d..1cb314721c 100644 --- a/repository.h +++ b/repository.h @@ -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 -- cgit v1.2.3