diff options
author | Karsten Blees <karsten.blees@gmail.com> | 2013-05-29 22:32:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-02 14:54:38 -0700 |
commit | c3c327deeaf018e727a27f5ae88e140ff7a48595 (patch) | |
tree | a5939e1d17f7ffe76c021fccf2ebe2369f0ed534 /t/t6006-rev-list-format.sh | |
parent | dir.c: git-status --ignored: don't scan the work tree twice (diff) | |
download | tgif-c3c327deeaf018e727a27f5ae88e140ff7a48595.tar.xz |
dir.c: fix ignore processing within not-ignored directories
As of 95c6f271 "dir.c: unify is_excluded and is_path_excluded APIs", the
is_excluded API no longer recurses into directories that match an ignore
pattern, and returns the directory's ignored state for all contained paths.
This is OK for normal ignore patterns, i.e. ignoring a directory affects
the entire contents recursively.
Unfortunately, this also "works" for negated ignore patterns ('!dir'), i.e.
the entire contents is "not-ignored" recursively, regardless of ignore
patterns that match the contents directly.
In prep_exclude, skip recursing into a directory only if it is really
ignored (i.e. the ignore pattern is not negated).
Signed-off-by: Karsten Blees <blees@dcon.de>
Tested-by: Øystein Walle <oystwa@gmail.com>
Reviewed-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6006-rev-list-format.sh')
0 files changed, 0 insertions, 0 deletions