From: Nguyen Thai Ngoc Duy Date: Wed, 03 Oct 2012 13:42:29 GMT Subject: Re: [ENHANCEMENT] Allow '**' pattern in .gitignore Message-ID: In-Reply-To: <506C3F23.9000009@web.de> On Wed, Oct 3, 2012 at 8:35 PM, Jens Lehmann wrote: > */foo/bar > */*/foo/bar > */*/*/foo/bar > > Using "**/foo/bar" instead would be a great improvement If this "**/foo/bar" (i.e. no wildcards except one ** at the beginning) is popular, we could optimize this case, turning fmatch() into strncmp(), just like what we do for "foobar*" -- Duy