Commit 9281cd0
commit-graph.c: avoid duplicated progress output during
When `git commit-graph verify` was taught how to verify commit-graph
chains in 3da4b60 (commit-graph: verify chains with --shallow mode,
2019-06-18), it produced one line of progress per layer of the
commit-graph chain.
$ git.compile commit-graph verify
Verifying commits in commit graph: 100% (4356/4356), done.
Verifying commits in commit graph: 100% (131912/131912), done.
This could be somewhat confusing to users, who may wonder why there are
multiple occurrences of "Verifying commits in commit graph".
There are likely good arguments on whether or not there should be
one line of progress output per commit-graph layer. On the one hand, the
existing output shows us verifying each individual layer of the chain.
But on the other hand, the fact that a commit-graph may be stored among
multiple layers is an implementation detail that the caller need not be
aware of.
Clarify this by showing a single progress meter regardless of the number
of layers in the commit-graph chain. After this patch, the output
reflects the logical contents of a commit-graph chain, instead of
showing one line of output per commit-graph layer:
$ git.compile commit-graph verify
Verifying commits in commit graph: 100% (136268/136268), done.
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
1 parent 7248857 commit 9281cd0
2 files changed
+19
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2545 | 2545 | | |
2546 | 2546 | | |
2547 | 2547 | | |
2548 | | - | |
| 2548 | + | |
| 2549 | + | |
2549 | 2550 | | |
2550 | 2551 | | |
2551 | 2552 | | |
| |||
2606 | 2607 | | |
2607 | 2608 | | |
2608 | 2609 | | |
2609 | | - | |
| 2610 | + | |
2610 | 2611 | | |
2611 | 2612 | | |
2612 | 2613 | | |
| |||
2695 | 2696 | | |
2696 | 2697 | | |
2697 | 2698 | | |
| 2699 | + | |
2698 | 2700 | | |
| 2701 | + | |
2699 | 2702 | | |
2700 | 2703 | | |
2701 | 2704 | | |
2702 | 2705 | | |
2703 | 2706 | | |
2704 | 2707 | | |
2705 | | - | |
2706 | | - | |
2707 | | - | |
2708 | | - | |
2709 | | - | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
2710 | 2716 | | |
2711 | | - | |
| 2717 | + | |
| 2718 | + | |
2712 | 2719 | | |
2713 | 2720 | | |
2714 | | - | |
2715 | | - | |
2716 | 2721 | | |
2717 | 2722 | | |
| 2723 | + | |
| 2724 | + | |
2718 | 2725 | | |
2719 | 2726 | | |
2720 | 2727 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
| 355 | + | |
355 | 356 | | |
356 | 357 | | |
357 | 358 | | |
| |||
0 commit comments