Skip to content
Myr

Merge pull request #1396 from skoriop/default-ignore-git-folder

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thayne McCombs · committed by GitHub · parents 6b5fe1c, 9df9a48 · Browse files · 2 files+10 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • feat: ignore `.git/` by default

Diff stats

2 files+10 added−0 removed

  • other:+10 added−0 removed

2 files+10 added−0 removed

modified:src/walk.rs+7 added
64 unmodified lines
65 override_builder66 .add(pattern)67 .map_err(|e| anyhow!("Malformed exclude pattern: {}", e))?;68 }6970 if config.read_vcsignore {71 override_builder72 .add("!.git")73 .expect("Invalid exclude pattern");74 }7576 let overrides = override_builder77 .build()78 .map_err(|_| anyhow!("Mismatch in exclude patterns"))?;79
473 unmodified lines
modified:CHANGELOG.md+3 added
1# v8.7.123- Breaking: `.git/` is now ignored by default when using `--hidden` / `-H`, use `--no-ignore` / `-I` or 4 `--no-ignore-vcs` to override, see #1387 and #1396 (@skoriop)56## Bugfixes78- `-1` properly conflicts with the exec family of options.9- `--max-results` overrides `-1`
689 unmodified lines