]>
Commit | Line | Data |
---|---|---|
3964fc2a DS |
1 | #ifndef SPARSE_INDEX_H__ |
2 | #define SPARSE_INDEX_H__ | |
3 | ||
4 | struct index_state; | |
ce7a9f01 DS |
5 | #define SPARSE_INDEX_MEMORY_ONLY (1 << 0) |
6 | int convert_to_sparse(struct index_state *istate, int flags); | |
3964fc2a | 7 | |
71f82d03 DS |
8 | /* |
9 | * Some places in the codebase expect to search for a specific path. | |
10 | * This path might be outside of the sparse-checkout definition, in | |
11 | * which case a sparse-index may not contain a path for that index. | |
12 | * | |
13 | * Given an index and a path, check to see if a leading directory for | |
14 | * 'path' exists in the index as a sparse directory. In that case, | |
15 | * expand that sparse directory to a full range of cache entries and | |
16 | * populate the index accordingly. | |
17 | */ | |
18 | void expand_to_path(struct index_state *istate, | |
19 | const char *path, size_t pathlen, int icase); | |
20 | ||
122ba1f7 DS |
21 | struct repository; |
22 | int set_sparse_index_config(struct repository *repo, int enable); | |
23 | ||
3964fc2a | 24 | #endif |