Nguyễn Thái Ngọc Duy pclo...@gmail.com writes:
A non-basename pattern that does not contain /**/ can't match anything
outside the attached directory. Record its directory level and avoid
matching unless the pathname is also at the same directory level.
Without defining what a directory level
On Sun, Mar 10, 2013 at 3:20 PM, Junio C Hamano gits...@pobox.com wrote:
+ else if (*p == '/')
+ dirs--;
I presume this is to compensate for a pattern like /pat whose
leading slash is only to anchor the pattern at the level. Correct?
Yes.
Also for the record, we could cut
On Sun, Mar 10, 2013 at 5:58 PM, Junio C Hamano gits...@pobox.com wrote:
Junio C Hamano gits...@pobox.com writes:
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes:
A non-basename pattern that does not contain /**/ can't match anything
outside the attached directory. Record its directory level
A non-basename pattern that does not contain /**/ can't match anything
outside the attached directory. Record its directory level and avoid
matching unless the pathname is also at the same directory level.
This optimization shines when there are a lot of non-basename patterns
are the root
4 matches
Mail list logo