[PATCH 12/12] Add git-check-ignore sub-command

2012-10-14 Thread Nguyễn Thái Ngọc Duy
From: Adam Spiers This works in a similar manner to git-check-attr. Some code was reused from add.c by refactoring out into pathspec.c. Thanks to Jeff King and Junio C Hamano for the idea: http://thread.gmane.org/gmane.comp.version-control.git/108671/focus=108815 Signed-off-by: Adam Spiers Si

Re: [PATCH 12/12] Add git-check-ignore sub-command

2012-12-16 Thread Adam Spiers
On Tue, Oct 16, 2012 at 09:12:58AM -0700, Junio C Hamano wrote: > Adam Spiers writes: > > On Mon, Oct 15, 2012 at 3:31 PM, Junio C Hamano wrote: > >> Nguyễn Thái Ngọc Duy writes: > >>> +For each pathname given via the command-line or from a file via > >>> +`--stdin`, this command will list the

Re: [PATCH 12/12] Add git-check-ignore sub-command

2012-10-15 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > +For each pathname given via the command-line or from a file via > +`--stdin`, this command will list the first exclude pattern found (if > +any) which explicitly excludes or includes that pathname. Note that > +within any given exclude file, later patterns take p

Re: [PATCH 12/12] Add git-check-ignore sub-command

2012-10-16 Thread Nguyen Thai Ngoc Duy
Adam, do you have time to continue this series? I can help polish it for inclusion, but I don't want to step in your way if you are quietly updating it. On Tue, Oct 16, 2012 at 5:31 AM, Junio C Hamano wrote: >> + >> +If `-z` is specified, the output is a series of lines of the form: >> + > > Hmph

Re: [PATCH 12/12] Add git-check-ignore sub-command

2012-10-16 Thread Adam Spiers
Hi again, Firstly thanks very much for your recent work on this series! On Tue, Oct 16, 2012 at 4:08 AM, Nguyen Thai Ngoc Duy wrote: > Adam, do you have time to continue this series? I can help polish it > for inclusion, but I don't want to step in your way if you are quietly > updating it. I w

Re: [PATCH 12/12] Add git-check-ignore sub-command

2012-10-16 Thread Adam Spiers
On Mon, Oct 15, 2012 at 3:31 PM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >> +For each pathname given via the command-line or from a file via >> +`--stdin`, this command will list the first exclude pattern found (if >> +any) which explicitly excludes or includes that pathname. Not

Re: [PATCH 12/12] Add git-check-ignore sub-command

2012-10-16 Thread Nguyen Thai Ngoc Duy
On Tue, Oct 16, 2012 at 9:09 PM, Adam Spiers wrote: > I was *intending* to finish it off soon, but I have been really busy > with work and other commitments recently, which has prevented this. I > don't currently have any unpublished changes which would conflict with > your recent work, and I'm a

Re: [PATCH 12/12] Add git-check-ignore sub-command

2012-10-16 Thread Junio C Hamano
Adam Spiers writes: > On Mon, Oct 15, 2012 at 3:31 PM, Junio C Hamano wrote: >> Nguyễn Thái Ngọc Duy writes: >> >>> +For each pathname given via the command-line or from a file via >>> +`--stdin`, this command will list the first exclude pattern found (if >>> +any) which explicitly excludes or