Skip to content

[ENHANCEMENT] Provide setting which controls whether the indexer respects .gitignore #11249

@emeraldcheshire

Description

@emeraldcheshire

Problem (one or two sentences)

Roo Code indexer always ignores files listed in .gitignore regardless of .rooignore.
Consequently, there is no way to have files in the project that are indexed but not tracked by git.

Context (who is affected and when)

Users with projects that require external material such as APIs (headers, etc) for full analysis. These external APIs must be excluded via .gitignore to prevent them from being accidentally committed. These APIs are important for Roo Code to index because they provide context for what the actual code is interacting with.

Desired behavior (conceptual, not technical)

Roo Code should provide a per-project setting which controls whether the indexer respects .gitignore. The default should continue to be True: respect .gitignore and .rooignore. When False: respect only .rooignore.

Note: all discussion of .gitignore applies to .gitignore and .git/info/exclude

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

No response

Trade-offs / risks (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions