Files
git/Documentation
Nguyễn Thái Ngọc Duy 57534ee77d dir.c: don't exclude whole dir prematurely if neg pattern may match
If there is a pattern "!foo/bar", this patch makes it not exclude "foo"
right away. This gives us a chance to examine "foo" and re-include
"foo/bar".

In order for it to detect that the directory under examination should
not be excluded right away, in other words it is a parent directory of a
negative pattern, the "directory path" of the negative pattern must be
literal. Patterns like "!f?o/bar" can't stop "foo" from being excluded.

Basename matching (i.e. "no slashes in the pattern") or must-be-dir
matching (i.e. "trailing slash in the pattern") does not work well with
this. For example, if we descend in "foo" and are examining "foo/abc",
current code for "foo/" pattern will check if path "foo/abc", not "foo",
is a directory. The same problem with basename matching. These may need
big code reorg to make it work.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-09-21 11:06:47 -07:00
..
2015-09-04 10:32:15 -07:00
2014-12-22 12:28:11 -08:00
2014-11-04 13:14:44 -08:00
2013-09-04 12:23:25 -07:00
2014-11-04 13:14:44 -08:00
2014-11-04 13:14:44 -08:00
2014-11-04 13:14:44 -08:00
2013-05-29 14:23:04 -07:00
2014-11-04 13:14:44 -08:00
2013-10-18 13:50:12 -07:00
2014-11-04 13:14:44 -08:00
2013-04-12 12:00:52 -07:00
2015-09-04 10:32:15 -07:00
2014-11-04 13:14:44 -08:00
2014-11-04 13:14:44 -08:00
2014-11-04 13:14:44 -08:00
2015-01-22 13:44:14 -08:00