Re: [PATCH] match_pathname(): give fnmatch one char of prefix context
- From
Jeff King <peff@peff.net>
- Date
- Oct 14, 2025, 03:09 UTC
- Message-ID
- <20251014030915.GA1652717@coredump.intra.peff.net>
- In-Reply-To
- <20251014003404.GC1507@coredump.intra.peff.net>
On Mon, Oct 13, 2025 at 08:34:04PM -0400, Jeff King wrote:
Show 11 quoted lines
> On Fri, Oct 10, 2025 at 02:57:07PM +0000, Sruteesh Kumar wrote: > > > Look at the first scenario in the above link. Git is matching the path > > foobar with the pattern foo**/bar which is against the git's official > > documentation (Look at the last point in the double asterisk section > > at the URL https://git-scm.com/docs/gitignore#_pattern_format). > > > > Is this an issue with the code or the documentation? > > I think the code is buggy. Here's a patch which would fix it, but I've > marked it as RFC because:
Er, sorry, I forgot to actually mark it as "RFC" in the subject. But pretend that I did. ;)
-Peff