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 --- cache.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 5b690b80a1..1188289774 100644 --- a/cache.h +++ b/cache.h @@ -312,10 +312,6 @@ typedef int (*must_prefetch_predicate)(const struct cache_entry *); void prefetch_cache_entries(const struct index_state *istate, must_prefetch_predicate must_prefetch); -#ifdef USE_THE_INDEX_VARIABLE -extern struct index_state the_index; -#endif - /* Initialize and use the cache information */ struct lock_file; int do_read_index(struct index_state *istate, const char *path, -- cgit 1.2.3-korg