[PATCH 1/2] dir.c: fix bug in 'nd/exclusion-regression-fix' topic

2016-03-19 Thread Nguyễn Thái Ngọc Duy
The topic in question introduces "sticky" path list for this purpose: given a path 'abc/def', if 'abc' already matches a pattern X, it's added to X's sticky path list. When we need to check if 'abc/def' matches pattern X and see that 'abc' is already in the list, we conclude right away that 'abc/de

[PATCH 1/2] dir.c: fix bug in 'nd/exclusion-regression-fix' topic

2016-03-19 Thread Nguyễn Thái Ngọc Duy
The topic in question introduces "sticky" path list for this purpose: given a path 'abc/def', if 'abc' already matches a pattern X, it's added to X's sticky path list. When we need to check if 'abc/def' matches pattern X and see that 'abc' is already in the list, we conclude right away that 'abc/de

Re: [PATCH 1/2] dir.c: fix bug in 'nd/exclusion-regression-fix' topic

2016-03-18 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > The topic in question introduces "sticky" path list for this purpose: > given a path 'abc/def', if 'abc' already matches a pattern X, it's added > to X's sticky path list. When we need to check if 'abc/def' matches > pattern X and see that 'abc' is already in the l