| 885 | } |
| 886 | |
| 887 | int cache_tree_matches_traversal(struct cache_tree *root, |
| 888 | struct name_entry *ent, |
| 889 | struct traverse_info *info) |
| 890 | { |
| 891 | struct cache_tree *it; |
| 892 | |
| 893 | it = find_cache_tree_from_traversal(root, info); |
| 894 | it = cache_tree_find(it, ent->path); |
| 895 | if (it && it->entry_count > 0 && oideq(&ent->oid, &it->oid)) |
| 896 | return it->entry_count; |
| 897 | return 0; |
| 898 | } |
| 899 | |
| 900 | static int verify_one_sparse(struct index_state *istate, |
| 901 | struct strbuf *path, |
no test coverage detected