Properly use .ignore files, see #156

This commit is contained in:
sharkdp 2018-10-27 18:11:50 +02:00
parent 26c2371835
commit f064ee5509
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ pub fn scan(path_vec: &[PathBuf], pattern: Arc<Regex>, config: Arc<FdOptions>) {
let mut walker = WalkBuilder::new(first_path_buf.as_path());
walker
.hidden(config.ignore_hidden)
.ignore(true)
.ignore(config.read_fdignore)
.parents(config.read_fdignore || config.read_vcsignore)
.git_ignore(config.read_vcsignore)
.git_global(config.read_vcsignore)