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

Function switch_cache_bottom

unpack-trees.c:732–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732static int switch_cache_bottom(struct traverse_info *info)
733{
734 struct unpack_trees_options *o = info->data;
735 int ret, pos;
736
737 if (o->diff_index_cached)
738 return 0;
739 ret = o->internal.cache_bottom;
740 pos = find_cache_pos(info->prev, info->name, info->namelen);
741
742 if (pos < -1)
743 o->internal.cache_bottom = -2 - pos;
744 else if (pos < 0)
745 o->internal.cache_bottom = o->src_index->cache_nr;
746 return ret;
747}
748
749static inline int are_same_oid(struct name_entry *name_j, struct name_entry *name_k)
750{

Callers 1

traverse_trees_recursiveFunction · 0.85

Calls 1

find_cache_posFunction · 0.85

Tested by

no test coverage detected