commit-graph: increment progress indicator
commitf1160393c172da29d0d0874c7d69ce76dbdc8c0c
authorDerrick Stolee <derrickstolee@github.com>
Tue, 11 Jun 2024 15:09:15 +0000 (11 15:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jun 2024 20:52:14 +0000 (12 13:52 -0700)
tree76adbad7021591982e231a33a4286bf24c5f2f38
parentcbfe360b140fe92d9c4a763bf630c3b8ba431522
commit-graph: increment progress indicator

This fixes a bug that was introduced by 368d19b0b7 (commit-graph:
refactor compute_topological_levels(), 2023-03-20): Previously, the
progress indicator was updated from `i + 1` where `i` is the loop
variable of the enclosing `for` loop. After this patch, the update used
`info->progress_cnt + 1` instead, however, unlike `i`, the
`progress_cnt` attribute was not incremented. Let's increment it.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
[jc: squashed in a test update from Patrick Steinhardt]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c
t/t6500-gc.sh