jasonwhite / jasonwhite/git-subset
Specific paths override more general paths
- Dominant language
- Rust
- Stars
- 18
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
For example, if your filter file includes paths like:
```
a/b
a/b/c/d
```
Then, if it exists, path `a/b/e` winds up getting ignored. It seems like a better behavior would be for it to issue a warning that path `a/b/c/d` is overridden by the more general path `a/b` which would include path `a/b/e`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the case with a filter file containing a/b and a/b/c/d, then trace the path-filtering entry point that decides which paths are ignored. Done means the more-specific path is reported as overridden by the general path, with the behavior covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, rust
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100