* Returns true if and only if the given cache_entry is a * sparse-directory entry that matches the given name_entry * from the tree walk at the given traverse_info. */
| 1448 | * from the tree walk at the given traverse_info. |
| 1449 | */ |
| 1450 | static int is_sparse_directory_entry(struct cache_entry *ce, |
| 1451 | const struct name_entry *name, |
| 1452 | struct traverse_info *info) |
| 1453 | { |
| 1454 | if (!ce || !name || !S_ISSPARSEDIR(ce->ce_mode)) |
| 1455 | return 0; |
| 1456 | |
| 1457 | return sparse_dir_matches_path(ce, info, name); |
| 1458 | } |
| 1459 | |
| 1460 | static int unpack_sparse_callback(int n, unsigned long mask, unsigned long dirmask, struct name_entry *names, struct traverse_info *info) |
| 1461 | { |
no test coverage detected