Skip to content

fix: preserve path context and align glob matching with .gitignore#39

Merged
rasros merged 1 commit intomainfrom
path-context-stripping
Mar 3, 2026
Merged

fix: preserve path context and align glob matching with .gitignore#39
rasros merged 1 commit intomainfrom
path-context-stripping

Conversation

@rasros
Copy link
Owner

@rasros rasros commented Mar 3, 2026

Previously, files passed explicitly (via stdin or -f) had their parent directories stripped when anchoring the virtual filesystem. This prevented directory-based exclude patterns (like -e "tests") from working on piped inputs like git diff.

Additionally, the glob matching engine only checked basenames for floating patterns, diverging from standard .gitignore behavior.

@rasros rasros merged commit df3f966 into main Mar 3, 2026
1 check passed
@rasros rasros deleted the path-context-stripping branch March 10, 2026 08:47
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