Skip to content

Support ! negations in pure-Oot gitignore matcher - #10

Merged
kridaydave merged 1 commit into
mainfrom
fix-pure-oot-ignore-negation
Sep 5, 2026
Merged

Support ! negations in pure-Oot gitignore matcher#10
kridaydave merged 1 commit into
mainfrom
fix-pure-oot-ignore-negation

Conversation

@kridaydave

Copy link
Copy Markdown
Contributor

Pure-Oot projects dropped ! lines entirely. Now last-match-wins like git. File negations verified against git check-ignore as oracle. Dir re-inclusion under excluded dirs is a documented forgiving superset (git refuses, we honor). One file, 74 insertions, all 18 test suites green, clippy and fmt clean.

build_ignore_state kept dropping ! lines. simple_ignored now folds rules in order, last match wins. File-level negations match git check-ignore exactly, dir re-inclusion is a documented forgiving superset.
@kridaydave
kridaydave merged commit cd7f848 into main Sep 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant