author | Junio C Hamano <junkio@cox.net> | |
Fri, 29 Jul 2005 06:32:20 +0000 (23:32 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 30 Jul 2005 00:21:47 +0000 (17:21 -0700) | ||
commit | fee8825613001931daaa30d038521ae2a85d5234 | |
tree | cc7d01f0cd6e003e69a2dbe3e1473d903ceebd62 | tree | snapshot |
parent | 6c3b84c81c39a1751545cd3fb70d57249d37e9d7 | commit | diff |
ls-files: rework exclude patterns.
Pasky and others raised many valid points on the problems
initial exclude pattern enhancement work had. Based on the
list discussion, rework the exclude logic to use "last match
determines its fate" rule, and order the list by exclude-from
(the fallback default pattern file), exclude-per-directory
(shallower to deeper, so deeper ones can override), and then
command line exclude patterns.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Pasky and others raised many valid points on the problems
initial exclude pattern enhancement work had. Based on the
list discussion, rework the exclude logic to use "last match
determines its fate" rule, and order the list by exclude-from
(the fallback default pattern file), exclude-per-directory
(shallower to deeper, so deeper ones can override), and then
command line exclude patterns.
Signed-off-by: Junio C Hamano <junkio@cox.net>
ls-files.c | diff | blob | history |