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

Function fill_tree_loc

t/unit-tests/u-oidtree.c:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 } while (0)
16
17static int fill_tree_loc(struct oidtree *ot, const char *hexes[], size_t n)
18{
19 for (size_t i = 0; i < n; i++) {
20 struct object_id oid;
21 cl_parse_any_oid(hexes[i], &oid);
22 oidtree_insert(ot, &oid, NULL);
23 }
24 return 0;
25}
26
27static void check_contains(struct oidtree *ot, const char *hex, bool expected)
28{

Callers

nothing calls this directly

Calls 2

cl_parse_any_oidFunction · 0.85
oidtree_insertFunction · 0.85

Tested by

no test coverage detected