| 1545 | } |
| 1546 | |
| 1547 | static void add_missing_parents(struct write_commit_graph_context *ctx, struct commit *commit) |
| 1548 | { |
| 1549 | struct commit_list *parent; |
| 1550 | for (parent = commit->parents; parent; parent = parent->next) { |
| 1551 | if (!(parent->item->object.flags & REACHABLE)) { |
| 1552 | oid_array_append(&ctx->oids, &parent->item->object.oid); |
| 1553 | parent->item->object.flags |= REACHABLE; |
| 1554 | } |
| 1555 | } |
| 1556 | } |
| 1557 | |
| 1558 | static void close_reachable(struct write_commit_graph_context *ctx) |
| 1559 | { |
no test coverage detected