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

Function add_packed_commits

commit-graph.c:1531–1545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1529}
1530
1531static int add_packed_commits(const struct object_id *oid,
1532 struct packed_git *pack,
1533 uint32_t pos,
1534 void *data)
1535{
1536 enum object_type type;
1537 off_t offset = nth_packed_object_offset(pack, pos);
1538 struct object_info oi = OBJECT_INFO_INIT;
1539
1540 oi.typep = &type;
1541 if (packed_object_info(pack, offset, &oi) < 0)
1542 die(_("unable to get type of object %s"), oid_to_hex(oid));
1543
1544 return add_packed_commits_oi(oid, &oi, data);
1545}
1546
1547static void add_missing_parents(struct write_commit_graph_context *ctx, struct commit *commit)
1548{

Callers

nothing calls this directly

Calls 5

nth_packed_object_offsetFunction · 0.85
packed_object_infoFunction · 0.85
oid_to_hexFunction · 0.85
add_packed_commits_oiFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected