Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Mention un-skip option in docs
Lars Bergmannce90b3dd9d0d
diff --git a/docs/cbmignore.md b/docs/cbmignore.mdindex 3d19e61e8..e77ff0bf4 100644--- a/docs/cbmignore.md+++ b/docs/cbmignore.md@@ -68,15 +68,18 @@ a path wins. For directories:1. **Built-in skip list** — `.git`, `node_modules`, `dist`, `target`,`vendor`, tool caches, etc. (60+ names; the fast/moderate index modes add- more, e.g. `docs`, `examples`, `testdata`). Not overridable from any- ignore file today.+ more, e.g. `docs`, `examples`, `testdata`). A `.cbmignore` negation+ (for example `!target/`) can un-skip these directories, except the+ non-negatable safety core: `.git`, `node_modules`, `.worktrees`, and+ `.claude-worktrees`.2. **Repo `.gitignore`** — `<repo>/.gitignore` merged with`<git-common-dir>/info/exclude` (worktree-aware); later patterns win onconflict. Honored even when the indexed directory is not a git repo root.3. **Nested `.gitignore` files** — picked up during the walk and matchedrelative to their own directory.4. **`.cbmignore`** — a positive match skips the path; a negated match can- only rescue paths from layer 5.+ un-skip built-in skip dirs from layer 1 (except the safety core) and can+ also rescue paths from layer 5.5. **Git global excludes** — `core.excludesFile` from `~/.gitconfig` or theXDG git config (default `$XDG_CONFIG_HOME/git/ignore`); consulted onlywhen the project is a git repo with a config.@@ -97,25 +100,16 @@ always skipped.directory is excluded. Negate the directory itself if you need itscontents.- **Across layers**: a `.cbmignore` negation overrides the **git global- excludes** layer only. Example: your `~/.config/git/ignore` ignores- `*.sql`, but this project's SQL should be indexed — add `!*.sql` to- `.cbmignore`. Negation cannot override the built-in skip lists, the repo- `.gitignore`/`info/exclude`, nested `.gitignore` files, the built-in- suffix/filename filters, or the size cap.--### Planned (not yet implemented)--The negation story is being unified; none of the following works yet:--- `!` in `.cbmignore` will be able to un-skip ordinary built-in skip- directories (`obj/`, `dist/`, `target/`, …) so build-output-like- directories that actually contain source can be indexed.-- A small safety core stays non-negatable by design — `.git`,- `node_modules`, and worktree-internal directories — because indexing them- risks OOM and correctness issues (see issue #489).+ excludes** layer and can also un-skip ordinary built-in skip directories.+ Example: your `~/.config/git/ignore` ignores `*.sql`, but this project's+ SQL should be indexed — add `!*.sql` to `.cbmignore`. Negation still cannot+ override the safety core built-in dirs (`.git`, `node_modules`,+ `.worktrees`, `.claude-worktrees`), the repo `.gitignore`/`info/exclude`,+ nested `.gitignore` files, the built-in suffix/filename filters, or the+ size cap.++### Planned follow-up+- Auxiliary filesystem walkers will honor the same ignore predicate asdiscovery, so every code path sees an identical ignore decision(unification tracked in a follow-up issue).--Until these land, the "Precedence" and "Negation — current behavior" sections-above describe the actual behavior.