diff options
| author | Kristofer Karlsson <krka@spotify.com> | 2026-06-29 13:19:21 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-29 10:42:35 -0700 |
| commit | ae68032a8d0427bf90bbc316f662320d15933fdc (patch) | |
| tree | d6128289540cf6a7eb2d1b7c9d70480c68e70004 /t/t4013/diff.diff_initial..side | |
| parent | 18cf52c8a590d00c333d3d20edc2cf8c11c8ab92 (diff) | |
commit-reach: guard !FIND_ALL early exit with generation ordering check
When paint_down_to_common() falls back to commit-date ordering (for
v1 commit graphs without corrected commit dates), the !FIND_ALL early
exit incorrectly fires. The exit assumes the queue is generation-
ordered, so the first RESULT commit found must be the shallowest.
With date ordering this is not guaranteed: a closer merge base with
a lower committer date (clock skew) may still be in the queue behind
deeper commits.
Add a gen_ordered flag that is cleared when the date fallback fires,
and require it for the early exit.
Update the test from the previous commit to test_expect_success.
Signed-off-by: Kristofer Karlsson <krka@spotify.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
