git-ls-files: --exclude mechanism updates.
authorJunio C Hamano <junkio@cox.net>
Sun, 24 Jul 2005 22:26:09 +0000 (15:26 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 26 Jul 2005 00:03:52 +0000 (17:03 -0700)
commitf87f94974869b1ddd579d4c6aaff12a5f86ca26e
tree2423ec84272bfc8d589b42e41f521e7d6877c779
parentb7e438f951f68be704b001343811e9ff89da07f7
git-ls-files: --exclude mechanism updates.

Add --exclude-per-directory=<name> option that specifies a file
to contain exclude patterns local to that directory and its
subdirectories.  Update the exclusion logic to be able to say
"include files that match this more specific pattern, even
though later exclude patterns may match them".  Also enhances
that a pattern can contain '/' in which case fnmatch is called
with FNM_PATHNAME flag to match the entire path.

Signed-off-by: Junio C Hamano <junkio@cox.net>
ls-files.c
t/t3001-ls-files-others-exclude.sh [new file with mode: 0755]