MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / tpt_leaf

Function tpt_leaf

src/mcp/test_impact_tree_util.c:181–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181const char *tpt_leaf(const tpt_object *o) {
182 size_t start = o->length;
183 while (start && o->path[start - 1] != '/')
184 start--;
185 return o->path + start;
186}
187
188tpt_object *tpt_parent(cbm_pinned_tree_t *t, const tpt_object *o) {
189 return o->parent == SIZE_MAX ? &t->parent : &t->objects[o->parent];

Callers 5

tpt_entryFunction · 0.85
tpt_stat_pathFunction · 0.85
tpt_open_objectFunction · 0.85
tpt_native_createFunction · 0.85
tpt_native_removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected