Draft
Honor ignore rules outside Git repos during indexing#168
Conversation
Co-authored-by: Anandb71 <169837340+Anandb71@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix ignore rules not honored outside a git repository
Honor ignore rules outside Git repos during indexing
Aug 8, 2026
Anandb71
approved these changes
Aug 8, 2026
🌳 Arbor Impact ReportRisk Level: 🟠 High | Blast Radius: 50 nodes | Changed Symbols: 21 Changed Files
📊 Visual Impact Graphgraph TD
classDef changed fill:#ef4444,stroke:#333,stroke-width:2px,color:#fff;
classDef caller fill:#f59e0b,stroke:#333,stroke-width:1px,color:#fff;
index_directory[index_directory] --> build_ignore_matcher[build_ignore_matcher]
sources_newer_than[sources_newer_than] --> build_ignore_matcher[build_ignore_matcher]
class build_ignore_matcher changed;
class IndexResult changed;
class ArborConfig changed;
class DEFAULT_EXCLUDE_PATTERNS changed;
class IndexOptions changed;
class sources_newer_than caller;
class index_directory caller;
Impact Summary
Powered by Arbor v2.6.0 — graph-native code intelligence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In non-Git directories, Arbor was effectively indexing without exclusions, so vendored/dependency trees (e.g.,
venv,node_modules,site-packages) could dominate graph size and ranking. This change makes ignore behavior consistent between Git and non-Git workspaces.Ignore semantics in non-Git directories
.gitignoreeven when.git/is absent (require_git(false))..arborignore.Arbor-native and built-in excludes
venv/,.venv/,node_modules/,site-packages/,__pycache__/,target/,dist/,build/,out/).arbor/config.jsonignoreentriessources_newer_than), so behavior is consistent across index/read paths.Coverage for regression-prone paths
.gitignoreoutside Git repos.arborignore.arbor/config.jsonignorelist