cache: move ensure_full_index() to cache.h
Soon we will insert ensure_full_index() calls across the codebase. Instead of also adding include statements for sparse-index.h, let's just use the fact that anything that cares about the index already has cache.h in its includes. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Derrick Stolee committed
Apr 1, 2021 at 01:49 UTC
118a2e8bde0982d219607ff9f260b9cfeb25585c
2 files changed
+1
-1
cache.h
+1
@@ -350,6 +350,7 @@ void add_name_hash(struct index_state *istate, struct cache_entry *ce);
350
void remove_name_hash(struct index_state *istate, struct cache_entry *ce);
351
void free_name_hash(struct index_state *istate);
352
353
+void ensure_full_index(struct index_state *istate);
354
355
/* Cache entry creation and cleanup */
356
sparse-index.h
-1
@@ -2,7 +2,6 @@
2
#define SPARSE_INDEX_H__
3
4
struct index_state;
5
-void ensure_full_index(struct index_state *istate);
5
int convert_to_sparse(struct index_state *istate);
6
7
struct repository;