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

Function add_packed_commits_oi

commit-graph.c:1513–1529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1511}
1512
1513static int add_packed_commits_oi(const struct object_id *oid,
1514 struct object_info *oi,
1515 void *data)
1516{
1517 struct write_commit_graph_context *ctx = (struct write_commit_graph_context*)data;
1518
1519 if (ctx->progress)
1520 display_progress(ctx->progress, ++ctx->progress_done);
1521
1522 if (*oi->typep != OBJ_COMMIT)
1523 return 0;
1524
1525 oid_array_append(&ctx->oids, oid);
1526 set_commit_pos(ctx->r, oid);
1527
1528 return 0;
1529}
1530
1531static int add_packed_commits(const struct object_id *oid,
1532 struct packed_git *pack,

Callers 1

add_packed_commitsFunction · 0.85

Calls 3

display_progressFunction · 0.85
oid_array_appendFunction · 0.85
set_commit_posFunction · 0.85

Tested by

no test coverage detected