Re: [PATCH v2] scripts: git-resolve: search beyond ten body-only matches

From: Sasha Levin

Date: Wed Nov 04 2026 - 07:58:34 EST


On Wed, Nov 04, 2026 at 06:43:40AM +0100, Hamdy Abou El Anein wrote:
> The forced subject lookup asks git log for at most ten matches before
> checking their subjects. Since --grep also searches message bodies, ten
> newer body-only matches can hide an older commit with the requested
> subject.
>
> Match commit subjects directly, so body-only matches cannot hide an
> older subject and grep stops at the first matching subject.

Acked-by: Sasha Levin <sashal@xxxxxxxxxx>

--
Thanks,
Sasha