]> Kevux Git Server - rit/commit
revision: fix --left/right-only use with unrelated histories
authorMatt Hunter <m@lfurio.us>
Sun, 30 Mar 2025 11:24:06 +0000 (07:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Apr 2025 09:57:26 +0000 (02:57 -0700)
commite7ef4be7c25c4968d8c5c51e6e748a1927f67194
tree58b67f3212771dcb569d2f762173a3d8cbb3ccd9
parent683c54c999c301c2cd6f715c411407c413b1d84e
revision: fix --left/right-only use with unrelated histories

This is a similar fix as 023756f4eb (revision walker: --cherry-pick is a
limited operation), but for the --left-only and --right-only options.

When computing a symmetric difference between two unrelated histories,
no suitable merge base exists, and so no boundary commit is flagged as
UNINTERESTING.  Previously, we relied on the presence of such boundary
to trigger limiting and thus consideration of either "revs->left_only"
or "revs->right_only".

A number of other entries in the option parser have started including
overrides for "revs->limited = 1".  Do the same for these options.

Signed-off-by: Matt Hunter <m@lfurio.us>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c
t/t6000-rev-list-misc.sh