Merge branch 'ds/sparse-index-ignored-files'
In cone mode, the sparse-index code path learned to remove ignored files (like build artifacts) outside the sparse cone, allowing the entire directory outside the sparse cone to be removed, which is especially useful when the sparse patterns change. * ds/sparse-index-ignored-files: sparse-checkout: clear tracked sparse dirs sparse-index: add SPARSE_INDEX_MEMORY_ONLY flag attr: be careful about sparse directories sparse-checkout: create helper methods sparse-index: use WRITE_TREE_MISSING_OK sparse-index: silently return when cache tree fails unpack-trees: fix nested sparse-dir search sparse-index: silently return when not using cone-mode patterns t7519: rewrite sparse index test
This commit is contained in:
8
dir.h
8
dir.h
@ -394,6 +394,14 @@ enum pattern_match_result path_matches_pattern_list(const char *pathname,
|
||||
const char *basename, int *dtype,
|
||||
struct pattern_list *pl,
|
||||
struct index_state *istate);
|
||||
|
||||
int init_sparse_checkout_patterns(struct index_state *state);
|
||||
|
||||
int path_in_sparse_checkout(const char *path,
|
||||
struct index_state *istate);
|
||||
int path_in_cone_mode_sparse_checkout(const char *path,
|
||||
struct index_state *istate);
|
||||
|
||||
struct dir_entry *dir_add_ignored(struct dir_struct *dir,
|
||||
struct index_state *istate,
|
||||
const char *pathname, int len);
|
||||
|
Reference in New Issue
Block a user