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

Function mark_ce_used

unpack-trees.c:613–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613static 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
628static void mark_all_ce_unused(struct index_state *index)
629{

Callers 6

mark_ce_used_same_nameFunction · 0.85
add_same_unmergedFunction · 0.85
unpack_index_entryFunction · 0.85
traverse_by_cache_treeFunction · 0.85
unpack_callbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected