Re: [ENHANCEMENT] Allow '**' pattern in .gitignore
- From
Joshua Jensen <jjensen@workspacewhiz.com>
- Date
- Oct 3, 2012, 17:51 UTC
- Message-ID
- <506C7B37.3080804@workspacewhiz.com>
- In-Reply-To
- <CACsJy8DRxbjcRpbO30vOCo9D+TK_dDX_oiocZSOtnGAR2jAOFw@mail.gmail.com>
----- Original Message ----- From: Nguyen Thai Ngoc Duy Date: 10/3/2012 7:42 AM
Show 9 quoted lines
> On Wed, Oct 3, 2012 at 8:35 PM, Jens Lehmann <Jens.Lehmann@web.de> 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*"
FWIW, I would like to see this in .gitattributes as well. I have a version of .gitattributes that supports recursive wildcards that I use for specifying filters.
-Josh