1 #ifndef SPARSE_INDEX_H__
2 #define SPARSE_INDEX_H__
5 int convert_to_sparse(struct index_state
*istate
);
8 * Some places in the codebase expect to search for a specific path.
9 * This path might be outside of the sparse-checkout definition, in
10 * which case a sparse-index may not contain a path for that index.
12 * Given an index and a path, check to see if a leading directory for
13 * 'path' exists in the index as a sparse directory. In that case,
14 * expand that sparse directory to a full range of cache entries and
15 * populate the index accordingly.
17 void expand_to_path(struct index_state
*istate
,
18 const char *path
, size_t pathlen
, int icase
);
21 int set_sparse_index_config(struct repository
*repo
, int enable
);