Re: [ENHANCEMENT] Allow '**' pattern in .gitignore
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Oct 3, 2012, 13:42 UTC
- Message-ID
- <CACsJy8DRxbjcRpbO30vOCo9D+TK_dDX_oiocZSOtnGAR2jAOFw@mail.gmail.com>
- In-Reply-To
- <506C3F23.9000009@web.de>
On Wed, Oct 3, 2012 at 8:35 PM, Jens Lehmann <Jens.Lehmann@web.de> wrote:
Show 5 quoted lines
> */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