Re: [PATCH] dir.c: allow re-include after a dir is excluded in some cases

2014-11-19 Thread Duy Nguyen
On Thu, Nov 20, 2014 at 1:48 AM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >> diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt >> index 09e82c3..0340c44 100644 >> --- a/Documentation/gitignore.txt >> +++ b/Documentation/gitignore.txt >> @@ -82,10 +82,9 @@ PATTE

Re: [PATCH] dir.c: allow re-include after a dir is excluded in some cases

2014-11-19 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt > index 09e82c3..0340c44 100644 > --- a/Documentation/gitignore.txt > +++ b/Documentation/gitignore.txt > @@ -82,10 +82,9 @@ PATTERN FORMAT > > - An optional prefix "`!`" which negates the p

[PATCH] dir.c: allow re-include after a dir is excluded in some cases

2014-11-19 Thread Nguyễn Thái Ngọc Duy
If we exclude a directory and have no knowledge in advance if there will be any negative rules on that directory, then it makes no sense to enter the directory and search for those negative rules. That defeats the purpose of excluding in the first place. However there are cases where we know in ad