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

Function compute_topological_levels

commit-graph.c:1711–1731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1709}
1710
1711static 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
1733static timestamp_t get_generation_from_graph_data(struct commit *c,
1734 void *data UNUSED)

Callers 1

write_commit_graphFunction · 0.85

Calls 3

start_delayed_progressFunction · 0.85
stop_progressFunction · 0.85

Tested by

no test coverage detected