Skip to content

Commit

Permalink
Properly use .ignore files, see #156
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Oct 27, 2018
1 parent 26c2371 commit f064ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f064ee5

Please sign in to comment.