| 234 | } |
| 235 | |
| 236 | int cache_tree_fully_valid(struct cache_tree *it) |
| 237 | { |
| 238 | int i; |
| 239 | if (!it) |
| 240 | return 0; |
| 241 | if (it->entry_count < 0 || |
| 242 | !odb_has_object(the_repository->objects, &it->oid, |
| 243 | ODB_HAS_OBJECT_RECHECK_PACKED | ODB_HAS_OBJECT_FETCH_PROMISOR)) |
| 244 | return 0; |
| 245 | for (i = 0; i < it->subtree_nr; i++) { |
| 246 | if (!cache_tree_fully_valid(it->down[i]->cache_tree)) |
| 247 | return 0; |
| 248 | } |
| 249 | return 1; |
| 250 | } |
| 251 | |
| 252 | static int must_check_existence(const struct cache_entry *ce) |
| 253 | { |
no test coverage detected