Skip to content

Commit

Permalink
ignore global git files and git exclude files by default
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimpkins committed Dec 17, 2023
1 parent b12c181 commit 1fae1f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ impl Walker {
.hidden(!args.hidden)
.skip_stdout(true)
.require_git(true)
.max_depth(args.depth);
.max_depth(args.depth)
.git_global(false)
.git_exclude(false);

// sort by file path string
if args.name {
Expand Down Expand Up @@ -112,7 +114,9 @@ impl ParallelWalker {
.hidden(!args.hidden)
.skip_stdout(true)
.require_git(true)
.max_depth(args.depth);
.max_depth(args.depth)
.git_global(false)
.git_exclude(false);

// filter files on user-defined globs
match &args.glob {
Expand Down

0 comments on commit 1fae1f9

Please sign in to comment.