Skip to content

Fix diff filtering for uppercase extensions and recursive patterns - #178

Open
a3ylf wants to merge 1 commit into
git-pkgs:mainfrom
a3ylf:fix/diff-pattern-matching
Open

Fix diff filtering for uppercase extensions and recursive patterns#178
a3ylf wants to merge 1 commit into
git-pkgs:mainfrom
a3ylf:fix/diff-pattern-matching

Conversation

@a3ylf

@a3ylf a3ylf commented Sep 7, 2026

Copy link
Copy Markdown

brief diff drops R, R Markdown, and mkmf detections when changed files have uppercase extensions or match a recursive pattern across multiple directories. Normalize pattern extensions to match the changed-extension lookup, and reuse the existing recursive path matcher.

Adds regression coverage for nested .R and .Rmd files, zero/deep ** matches, and ordinary wildcard matches and misses. Both new tests fail before the fix and pass afterward.

Fixes #176.

Validation: go build ./..., go test -race ./..., and golangci-lint 2.13.2 (0 issues).

Prepared with AI assistance.

@abhinavgautam01 abhinavgautam01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the implementation and regression coverage. Both fixes address #176 correctly, including deeply nested paths and zero-directory ** matches. I verified that the new tests fail before the fix and pass afterward...

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.

brief diff drops detections for uppercase extensions and recursive glob patterns

2 participants