[BUG] `.repomixignore` file ignored when `ignore.customPatterns` contains `"**/.*"`
First of all, thank you for creating and maintaining repomix! It's a fantastic tool.
I've encountered an issue while using the ignore.customPatterns in repomix.config.json. When I add "**/.*" in ignore.customPatterns, the .repomixignore file is completely ignored, and the patterns defined in it are no longer taken into account.
Steps to Reproduce:
- Add
"**/.*"toignore.customPatternsinrepomix.config.json:{ "ignore": { "customPatterns": ["**/.*"] } } - Create a
.repomixignorefile with some patterns, e.g.:*.log /temp/ - Run
repomixand observe that the patterns in.repomixignoreare not applied.
Expected Behavior:
The patterns in .repomixignore should still be respected and applied, even if ignore.customPatterns includes "**/.*".
Actual Behavior:
The .repomixignore file is ignored entirely, and its patterns are not applied.
Additional Context:
This behavior seems unintended, as the ignore.customPatterns and .repomixignore should ideally work together rather than one overriding the other.
Let me know if you need further details or if there’s anything I can do to help debug this issue. Thanks again for your work on this project!
Hi, @liblaf ! Thank you for the report!
This seems like unintended behavior, so I will investigate. I really appreciate the detailed information you've provided - it will help a lot with investigating the issue!
I am hitting this also
Actually .repomixignore stops working when it's included in
"customPatterns": [".gitignore", ".repomixinstruction", ".repomixignore"]
@yamadashy Btw why .gitignore and .repomixignore aren't excluded by default, or I miss something?