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

Function oe_set_tree_depth

builtin/pack-objects.c:2737–2744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2735}
2736
2737static inline void oe_set_tree_depth(struct packing_data *pack,
2738 struct object_entry *e,
2739 unsigned int tree_depth)
2740{
2741 if (!pack->tree_depth)
2742 CALLOC_ARRAY(pack->tree_depth, pack->nr_alloc);
2743 pack->tree_depth[e - pack->objects] = tree_depth;
2744}
2745
2746/*
2747 * Return the size of the object without doing any delta

Callers 1

show_objectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected