| 1709 | } |
| 1710 | |
| 1711 | static void compute_topological_levels(struct write_commit_graph_context *ctx) |
| 1712 | { |
| 1713 | struct compute_generation_info info = { |
| 1714 | .r = ctx->r, |
| 1715 | .commits = &ctx->commits, |
| 1716 | .get_generation = get_topo_level, |
| 1717 | .set_generation = set_topo_level, |
| 1718 | .data = ctx, |
| 1719 | }; |
| 1720 | |
| 1721 | if (ctx->report_progress) |
| 1722 | info.progress = ctx->progress |
| 1723 | = start_delayed_progress( |
| 1724 | ctx->r, |
| 1725 | _("Computing commit graph topological levels"), |
| 1726 | ctx->commits.nr); |
| 1727 | |
| 1728 | compute_reachable_generation_numbers(&info, 1); |
| 1729 | |
| 1730 | stop_progress(&ctx->progress); |
| 1731 | } |
| 1732 | |
| 1733 | static timestamp_t get_generation_from_graph_data(struct commit *c, |
| 1734 | void *data UNUSED) |
no test coverage detected