Commit c4ff24b
commit-graph.c: display correct number of chunks when writing
When writing a commit-graph, a progress meter is shown which indicates
the number of pieces of data to write (one per commit in each chunk).
In 47410aa (commit-graph: use chunk-format write API, 2021-02-18),
the number of chunks became tracked by the new chunk-format API. But a
stray local variable was left behind from when write_commit_graph_file()
used to keep track of the same.
Since this was no longer updated after 47410aa, the progress meter
appeared broken:
$ git commit-graph write --reachable
Expanding reachable commits in commit graph: 837569, done.
Writing out commit graph in 3 passes: 166% (4187845/2512707), done.
Drop the local variable and rely instead on the chunk-format API to tell
us the correct number of chunks.
Reported-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Acked-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent a43a2e6 commit c4ff24b
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1715 | 1715 | | |
1716 | 1716 | | |
1717 | 1717 | | |
1718 | | - | |
1719 | 1718 | | |
1720 | 1719 | | |
1721 | 1720 | | |
| |||
1811 | 1810 | | |
1812 | 1811 | | |
1813 | 1812 | | |
1814 | | - | |
1815 | | - | |
| 1813 | + | |
| 1814 | + | |
1816 | 1815 | | |
1817 | 1816 | | |
1818 | | - | |
| 1817 | + | |
1819 | 1818 | | |
1820 | 1819 | | |
1821 | 1820 | | |
| |||
0 commit comments