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

Function is_sparse_directory_entry

unpack-trees.c:1450–1458  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

1448 * from the tree walk at the given traverse_info.
1449 */
1450static 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
1460static int unpack_sparse_callback(int n, unsigned long mask, unsigned long dirmask, struct name_entry *names, struct traverse_info *info)
1461{

Callers 1

unpack_callbackFunction · 0.85

Calls 1

sparse_dir_matches_pathFunction · 0.85

Tested by

no test coverage detected