-
-
Notifications
You must be signed in to change notification settings - Fork 937
Open
Labels
Description
Description
When customPatterns is defined in the config file (~/.config/repomix/repomix.config.json or repomix.config.json), the .ignore file is completely ignored instead of being merged with the custom patterns.
Reproduction Steps
- Create a
.ignorefile in your project root with a pattern (e.g.,spec/data/) - Add
customPatternsto your config file:{ "ignore": { "customPatterns": ["bin/"] } } - Run
repomix - Files matching the
.ignorepattern are included in the output (should be excluded)
Expected Behavior
All ignore sources should be merged and applied together:
- Custom patterns from config
.repomixignore.ignore.gitignore(if enabled)- Default patterns (if enabled)
The priority order should only matter when rules conflict, not for whether sources are applied.
Current Behavior
When customPatterns is defined in the config, the .ignore file is completely ignored.
Additional Context
- Reported by @thomaswitt in Use .ignore file file content to ignore files. #937 (comment: Use .ignore file file content to ignore files. #937 (comment))
- Related to the
.ignoresupport feature added in v1.9.0 (Use .ignore file file content to ignore files. #937) - Similar tools like
ripgrepandfdmerge all ignore sources
Environment
- Repomix version: 1.9.0
thomaswitt