nix-filter/tests/fixture1
Robert Whitaker 21e58193e0
Make paths also match subdirectories (#2)
* Make paths also match subdirectories

This makes matchers that are generated for strings and paths treat the
path as a prefix instead of as the entire path, allowing a path to also
match its subdirectories and contained files.

This allows patterns like `"src"` to also match by default:
- `src/folder_x`
- `src/folder_x/folder_y`
- etc.

* Turn _isPathPrefix into new matcher and restore previous default path behavior

* Update inDirectory to compare string prefixes instead of path segments

This avoids the extra work of splitting the paths into segments and
comparing them piece by piece.

* proposed change

Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2021-04-29 21:48:37 +02:00
..
src Make paths also match subdirectories (#2) 2021-04-29 21:48:37 +02:00
package.json document 2021-04-23 19:19:37 +02:00
README.md document 2021-04-23 19:19:37 +02:00