]> git.ipfire.org Git - thirdparty/git.git/commit
commit-reach: move min_generation check into paint_queue_get()
authorKristofer Karlsson <krka@spotify.com>
Sat, 11 Jul 2026 13:27:44 +0000 (13:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 11 Jul 2026 21:00:11 +0000 (14:00 -0700)
commit3adb597b2aceceb3d1ad97b56e2d62b30fc9bb64
tree294b562950f82ed358c7591c577fc39884f96b0b
parent8df944d32a9792d07e60081222c7b31fd98e6c8b
commit-reach: move min_generation check into paint_queue_get()

Consolidate the min_generation termination condition into
paint_queue_get(), alongside the existing stale-entry and
side-exhaustion checks.

Move last_gen into struct paint_state so that
commit_graph_generation() is called exactly once per dequeued commit
and the result is shared across all termination checks and the
monotonicity BUG assertion.

Signed-off-by: Kristofer Karlsson <krka@spotify.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-reach.c