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
.ignore file in your project root with a pattern (e.g., spec/data/)
- Add
customPatterns to your config file:
{
"ignore": {
"customPatterns": ["bin/"]
}
}
- Run
repomix
- Files matching the
.ignore pattern 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
Environment
Description
When
customPatternsis defined in the config file (~/.config/repomix/repomix.config.jsonorrepomix.config.json), the.ignorefile is completely ignored instead of being merged with the custom patterns.Reproduction Steps
.ignorefile in your project root with a pattern (e.g.,spec/data/)customPatternsto your config file:{ "ignore": { "customPatterns": ["bin/"] } }repomix.ignorepattern are included in the output (should be excluded)Expected Behavior
All ignore sources should be merged and applied together:
.repomixignore.ignore.gitignore(if enabled)The priority order should only matter when rules conflict, not for whether sources are applied.
Current Behavior
When
customPatternsis defined in the config, the.ignorefile is completely ignored.Additional Context
.ignoresupport feature added in v1.9.0 (Use .ignore file file content to ignore files. #937)ripgrepandfdmerge all ignore sourcesEnvironment