| 3505 | } |
| 3506 | |
| 3507 | int 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 | |
| 3520 | int remove_path(const char *name) |
| 3521 | { |
no test coverage detected