Re: [PATCH 6/8] dir.c: unify is_excluded and is_path_excluded APIs

2013-03-18 Thread Eric Sunshine
On Mon, Mar 18, 2013 at 4:29 PM, Karsten Blees wrote: > Directories could also be excluded by exclude patterns specified on the > command line or .git/info/exclude, so we cannot simply skip prep_exclude > entirely if there's no .gitignore file name (dir_struct.exclude_per_dir). > Move this check t

[PATCH 6/8] dir.c: unify is_excluded and is_path_excluded APIs

2013-03-18 Thread Karsten Blees
The is_excluded and is_path_excluded APIs are very similar, except for a few noteworthy differences: is_excluded doesn't handle ignored directories, results for paths within ignored directories are incorrect. This is probably based on the premise that recursive directory scans should stop at ignor