Skip to content

Commit 118a2e8

Browse files
derrickstoleegitster
authored andcommitted
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 <[email protected]> Reviewed-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 95e0321 commit 118a2e8

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cache.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ void add_name_hash(struct index_state *istate, struct cache_entry *ce);
350350
void remove_name_hash(struct index_state *istate, struct cache_entry *ce);
351351
void free_name_hash(struct index_state *istate);
352352

353+
void ensure_full_index(struct index_state *istate);
353354

354355
/* Cache entry creation and cleanup */
355356

sparse-index.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define SPARSE_INDEX_H__
33

44
struct index_state;
5-
void ensure_full_index(struct index_state *istate);
65
int convert_to_sparse(struct index_state *istate);
76

87
struct repository;

0 commit comments

Comments
 (0)