From: Jeff King Date: Sun, 26 Oct 2025 15:40:36 GMT Subject: [PATCH v2 0/2] fix "foo**/bar" matching "foobar" Message-ID: <20251026154036.GA2173430@coredump.intra.peff.net> In-Reply-To: <20251026152614.GB2095501@coredump.intra.peff.net> On Sun, Oct 26, 2025 at 11:26:14AM -0400, Jeff King wrote: > Me too. I wrote it a few different ways before ending up with the "== > 1", just because it made the diff smaller. But let me do it as two > steps, which I think will make it all more clear. Here it is. Maybe excessive to split it up, but each patch is quite nice to read now. :) [1/2]: match_pathname(): reorder prefix-match check [2/2]: match_pathname(): give fnmatch one char of prefix context dir.c | 18 ++++++++++++------ t/t0008-ignores.sh | 11 +++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) -Peff