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

2012-12-28 Thread Adam Spiers
On Sat, Dec 29, 2012 at 01:23:52AM +, Adam Spiers wrote: > FYI, attached is the diff between check-ignore-v3 and my current > check-ignore, which is available at github: > > https://github.com/aspiers/git/commits/check-ignore [snipped] > diff --git a/pathspec.c b/pathspec.c > index 67241

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

2012-12-28 Thread Adam Spiers
On Fri, Dec 28, 2012 at 01:21:02PM -0800, Junio C Hamano wrote: > Adam Spiers writes: > > +static void output_exclude(const char *path, struct exclude *exclude) > > +{ > > + char *bang = exclude->flags & EXC_FLAG_NEGATIVE ? "!" : ""; > > + char *dir = (exclude->flags & EXC_FLAG_MUSTBEDIR) ? "

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

2012-12-28 Thread Junio C Hamano
Adam Spiers writes: > diff --git a/builtin/check-ignore.c b/builtin/check-ignore.c > new file mode 100644 > index 000..c825736 > --- /dev/null > +++ b/builtin/check-ignore.c > @@ -0,0 +1,170 @@ > +#include "builtin.h" > +#include "cache.h" > +#include "dir.h" > +#include "quote.h" > +#include

[PATCH v3 19/19] Add git-check-ignore sub-command

2012-12-26 Thread Adam Spiers
This works in a similar manner to git-check-attr. 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 --- Since v2, the missing documentation has been fixed, and the erroneous tweak to t/t9902-