| 1529 | } |
| 1530 | |
| 1531 | static 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 | |
| 1547 | static void add_missing_parents(struct write_commit_graph_context *ctx, struct commit *commit) |
| 1548 | { |
nothing calls this directly
no test coverage detected