| 1511 | } |
| 1512 | |
| 1513 | static 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 | |
| 1531 | static int add_packed_commits(const struct object_id *oid, |
| 1532 | struct packed_git *pack, |
no test coverage detected