From: Taylor Blau Date: Mon, 28 Oct 2024 18:11:14 GMT Subject: Re: Inconsistent handling of corrupt patches based on line endings Message-ID: In-Reply-To: On Mon, Oct 28, 2024 at 05:57:54PM +0100, Peregi Tamás wrote: > Hi all, > > I might've found an inconsistency in how git-apply treats corrupt patches > (representing empty context lines with completely empty lines instead of > lines containing a single space - usually a result of a "trim trailing > whitespace" editor setting) based on whether the patch file uses > Windows-style line endings (CRLF) or Unix-style line endings (LF only). Let's see if any recent apply.c folks have thoughts...: $ git shortlog -nse --no-merges --since=3.years.ago.. -- apply.c 21 Elijah Newren 12 Patrick Steinhardt 7 Ævar Arnfjörð Bjarmason 5 Junio C Hamano 4 Jeff King 4 René Scharfe Thanks, Taylor