Commit eb319d6
commit-graph.c: extract
When the `verify_commit_graph()` function was extended to support
commit-graph chains via 3da4b60 (commit-graph: verify chains with
--shallow mode, 2019-06-18), it did so by recursively calling itself on
each layer of the commit-graph chain.
In practice this poses no issues, since commit-graph chains do not loop,
and there are few enough of them that adding additional frames to the
stack is not a problem.
A future commit will consolidate the progress output from `git
commit-graph verify` when verifying chained commit-graphs to print a
single line instead of one progress meter per commit-graph layer.
Prepare for this by extracting a routine to verify a single layer of a
commit-graph.
Note that `verify_commit_graph()` is still recursive after this patch,
but this will change in the subsequent patch.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Acked-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>verify_one_commit_graph()
1 parent 39bdd30 commit eb319d6
1 file changed
+16
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2543 | 2543 | | |
2544 | 2544 | | |
2545 | 2545 | | |
2546 | | - | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
2547 | 2549 | | |
2548 | 2550 | | |
2549 | 2551 | | |
2550 | 2552 | | |
2551 | 2553 | | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
2555 | | - | |
2556 | | - | |
2557 | | - | |
2558 | 2554 | | |
2559 | 2555 | | |
2560 | 2556 | | |
| |||
2700 | 2696 | | |
2701 | 2697 | | |
2702 | 2698 | | |
2703 | | - | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
2704 | 2712 | | |
2705 | 2713 | | |
2706 | 2714 | | |
| |||
0 commit comments