Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
21
void oidtree_clear(struct oidtree *ot)
22
{
23
if (ot) {
24
mem_pool_discard(&ot->mem_pool, 0);
25
oidtree_init(ot);
26
}
27
}
28
29
struct oidtree_data {
30
struct object_id oid;
Callers
4
test_oidtree__cleanup
Function · 0.85
test_oidtree__insert_overwrites_data
Function · 0.85
odb_source_inmemory_free
Function · 0.85
odb_source_loose_clear_cache
Function · 0.85
Calls
2
mem_pool_discard
Function · 0.85
oidtree_init
Function · 0.85
Tested by
2
test_oidtree__cleanup
Function · 0.68
test_oidtree__insert_overwrites_data
Function · 0.68