| 611 | } |
| 612 | |
| 613 | static void mark_ce_used(struct cache_entry *ce, struct unpack_trees_options *o) |
| 614 | { |
| 615 | ce->ce_flags |= CE_UNPACKED; |
| 616 | |
| 617 | if (o->internal.cache_bottom < o->src_index->cache_nr && |
| 618 | o->src_index->cache[o->internal.cache_bottom] == ce) { |
| 619 | int bottom = o->internal.cache_bottom; |
| 620 | |
| 621 | while (bottom < o->src_index->cache_nr && |
| 622 | o->src_index->cache[bottom]->ce_flags & CE_UNPACKED) |
| 623 | bottom++; |
| 624 | o->internal.cache_bottom = bottom; |
| 625 | } |
| 626 | } |
| 627 | |
| 628 | static void mark_all_ce_unused(struct index_state *index) |
| 629 | { |
no outgoing calls
no test coverage detected