Skip to content

Support .ignore files that act as a local override layer on top of .gitignore. #497

@keeferwu

Description

@keeferwu

Version

codebase-memory-mcp 0.8.1

Platform

Linux (x64)

Install channel

npm

Binary variant

standard

What happened, and what did you expect?

Support .ignore files (using the same pattern syntax as .gitignore) that act as a local override layer on top of .gitignore. This is a well-established pattern used by tools like fd, ag, and rg:

.gitignore — patterns to ignore (unchanged, respected by CodeGraph as today)
.ignore — patterns to override .gitignore with negation patterns (! prefix)

For example, if .gitignore contains:
customer/

And the user creates .ignore with:
!customer/

Then codebase-memory-mcp would include the customer/ directory in its index even though it's gitignored.

Reproduction

none

Logs

none

Project scale (if relevant)

No response

Confirmations

  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions