tailwindcss/crates/ignore/src
Robin Malfait bbd916aaa0
Ignore binary extensions, except in folder names (#17595)
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>
2025-04-12 13:30:17 +02:00
..
default_types.rs Add @source not support (#17255) 2025-03-25 15:54:41 +01:00
dir.rs Add @source not support (#17255) 2025-03-25 15:54:41 +01:00
gitignore.rs Ignore binary extensions, except in folder names (#17595) 2025-04-12 13:30:17 +02:00
lib.rs Add @source not support (#17255) 2025-03-25 15:54:41 +01:00
overrides.rs Add @source not support (#17255) 2025-03-25 15:54:41 +01:00
pathutil.rs Add @source not support (#17255) 2025-03-25 15:54:41 +01:00
types.rs Add @source not support (#17255) 2025-03-25 15:54:41 +01:00
walk.rs Add @source not support (#17255) 2025-03-25 15:54:41 +01:00