]> git.ipfire.org Git - thirdparty/git.git/blame - sparse-index.h
reftable: reftable file level tests
[thirdparty/git.git] / sparse-index.h
CommitLineData
3964fc2a
DS
1#ifndef SPARSE_INDEX_H__
2#define SPARSE_INDEX_H__
3
4struct index_state;
6e773527 5int convert_to_sparse(struct index_state *istate);
3964fc2a 6
71f82d03
DS
7/*
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.
11 *
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.
16 */
17void expand_to_path(struct index_state *istate,
18 const char *path, size_t pathlen, int icase);
19
122ba1f7
DS
20struct repository;
21int set_sparse_index_config(struct repository *repo, int enable);
22
3964fc2a 23#endif