Skip to content

Commit

Permalink
Don't search in ignored files by default
Browse files Browse the repository at this point in the history
Fixes #136.
  • Loading branch information
bnjbvr committed Sep 25, 2024
1 parent a767940 commit a14e71a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ struct MacheteArgs {
#[argh(switch)]
fix: bool,

/// respect ignore files (.gitignore, .ignore, etc.) when searching for files.
/// also search in ignored files (.gitignore, .ignore, etc.) when searching for files.
#[argh(switch)]
ignore: bool,
no_ignore: bool,

/// print version.
#[argh(switch)]
Expand Down Expand Up @@ -138,7 +138,7 @@ fn run_machete() -> anyhow::Result<bool> {
&path,
CollectPathOptions {
skip_target_dir: args.skip_target_dir,
respect_ignore_files: args.ignore,
respect_ignore_files: !args.no_ignore,
},
) {
Ok(entries) => entries,
Expand Down

0 comments on commit a14e71a

Please sign in to comment.