ls-files: rework exclude patterns.
commitfee8825613001931daaa30d038521ae2a85d5234
authorJunio C Hamano <junkio@cox.net>
Fri, 29 Jul 2005 06:32:20 +0000 (28 23:32 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 30 Jul 2005 00:21:47 +0000 (29 17:21 -0700)
treecc7d01f0cd6e003e69a2dbe3e1473d903ceebd62
parent6c3b84c81c39a1751545cd3fb70d57249d37e9d7
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>
ls-files.c