MCPcopy Create free account
hub / github.com/git/git / get_sparse_checkout_patterns

Function get_sparse_checkout_patterns

dir.c:3507–3518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3505}
3506
3507int get_sparse_checkout_patterns(struct pattern_list *pl)
3508{
3509 int res;
3510 char *sparse_filename = get_sparse_checkout_filename();
3511 struct repo_config_values *cfg = repo_config_values(the_repository);
3512
3513 pl->use_cone_patterns = cfg->core_sparse_checkout_cone;
3514 res = add_patterns_from_file_to_list(sparse_filename, "", 0, pl, NULL, 0);
3515
3516 free(sparse_filename);
3517 return res;
3518}
3519
3520int remove_path(const char *name)
3521{

Callers 3

do_backfillFunction · 0.85

Calls 3

repo_config_valuesClass · 0.70

Tested by

no test coverage detected