Skip to content

Bug: .ignore file is ignored when customPatterns is defined in config #959

Description

@yamadashy

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

  1. Create a .ignore file in your project root with a pattern (e.g., spec/data/)
  2. Add customPatterns to your config file:
    {
      "ignore": {
        "customPatterns": ["bin/"]
      }
    }
  3. Run repomix
  4. 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

  • Repomix version: 1.9.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions