summaryrefslogtreecommitdiff
path: root/fsck.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2021-02-24 17:12:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-24 19:44:34 (GMT)
commitc4ff24bbb354377a6a7937744fbbef2898243fc7 (patch)
tree1ec5c6b3995c9f0a4161aa61f4fba1bc0de4bf9c /fsck.h
parenta43a2e6c2af63e5b93444c8ed8ac252927c2f0f3 (diff)
downloadgit-c4ff24bbb354377a6a7937744fbbef2898243fc7.zip
git-c4ff24bbb354377a6a7937744fbbef2898243fc7.tar.gz
git-c4ff24bbb354377a6a7937744fbbef2898243fc7.tar.bz2
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 47410aa837 (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 47410aa837, 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>
Diffstat (limited to 'fsck.h')
0 files changed, 0 insertions, 0 deletions