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

Function add_missing_parents

commit-graph.c:1547–1556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1545}
1546
1547static 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
1558static void close_reachable(struct write_commit_graph_context *ctx)
1559{

Callers 1

close_reachableFunction · 0.85

Calls 1

oid_array_appendFunction · 0.85

Tested by

no test coverage detected