Re: [ENHANCEMENT] Allow '**' pattern in .gitignore

2012-10-02 Thread Stefano Lattarini
On 10/02/2012 09:21 AM, Ramkumar Ramachandra wrote: > Hi, > > I've often found the '**' (extended) shell glob useful for matching > any string crossing directory boundaries: it's especially useful if > you only have a toplevel .gitignore, as opposed to a per-directory > .gitignore. Unfortunately,

Re: [ENHANCEMENT] Allow '**' pattern in .gitignore

2012-10-02 Thread Ramkumar Ramachandra
Stefano Lattarini wrote: > On 10/02/2012 09:21 AM, Ramkumar Ramachandra wrote: >> Hi, >> >> I've often found the '**' (extended) shell glob useful for matching >> any string crossing directory boundaries: it's especially useful if >> you only have a toplevel .gitignore, as opposed to a per-director

Re: [ENHANCEMENT] Allow '**' pattern in .gitignore

2012-10-03 Thread Nguyen Thai Ngoc Duy
On Tue, Oct 2, 2012 at 3:24 PM, Ramkumar Ramachandra wrote: > Stefano Lattarini wrote: >> On 10/02/2012 09:21 AM, Ramkumar Ramachandra wrote: >>> Hi, >>> >>> I've often found the '**' (extended) shell glob useful for matching >>> any string crossing directory boundaries: it's especially useful if

Re: [ENHANCEMENT] Allow '**' pattern in .gitignore

2012-10-03 Thread Jens Lehmann
Am 03.10.2012 13:35, schrieb Nguyen Thai Ngoc Duy: > On Tue, Oct 2, 2012 at 3:24 PM, Ramkumar Ramachandra > wrote: >> Stefano Lattarini wrote: >>> On 10/02/2012 09:21 AM, Ramkumar Ramachandra wrote: Hi, I've often found the '**' (extended) shell glob useful for matching any st

Re: [ENHANCEMENT] Allow '**' pattern in .gitignore

2012-10-03 Thread Nguyen Thai Ngoc Duy
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(

Re: [ENHANCEMENT] Allow '**' pattern in .gitignore

2012-10-03 Thread Jens Lehmann
Am 03.10.2012 15:42, schrieb Nguyen Thai Ngoc Duy: > 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 popu

Re: [ENHANCEMENT] Allow '**' pattern in .gitignore

2012-10-03 Thread Joshua Jensen
- Original Message - From: Nguyen Thai Ngoc Duy Date: 10/3/2012 7:42 AM 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 beginnin