We generate a glob to ignore binary extensions that looks something like
this:
```
*.{mp4,pages,exe,…}
```
However, if you have a folder that happens to end in `.pages` for
example, then this folder will be ignored in its entirety.
To solve this, we added a new flag to the `Gitignore` struct so we can
register a bunch of ignore rules that _only_ apply to paths and not
folders.
Fixes: #17569
## Test plan
- Added a unit test
---------
Co-authored-by: Philipp Spiess <hello@philippspiess.com>
|
||
|---|---|---|
| .. | ||
| default_types.rs | ||
| dir.rs | ||
| gitignore.rs | ||
| lib.rs | ||
| overrides.rs | ||
| pathutil.rs | ||
| types.rs | ||
| walk.rs | ||