MCPcopy Index your code
hub / github.com/git/git / oidtree_clear

Function oidtree_clear

oidtree.c:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void oidtree_clear(struct oidtree *ot)
22{
23 if (ot) {
24 mem_pool_discard(&ot->mem_pool, 0);
25 oidtree_init(ot);
26 }
27}
28
29struct oidtree_data {
30 struct object_id oid;

Callers 4

test_oidtree__cleanupFunction · 0.85
odb_source_inmemory_freeFunction · 0.85

Calls 2

mem_pool_discardFunction · 0.85
oidtree_initFunction · 0.85

Tested by 2

test_oidtree__cleanupFunction · 0.68