MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isAlwaysIgnored

Method isAlwaysIgnored

src/sync/watcher.ts:638–647  ·  view source on GitHub ↗

Our own dirs are always ignored, regardless of .gitignore.

(rel: string)

Source from the content-addressed store, hash-verified

636
637 /** Our own dirs are always ignored, regardless of .gitignore. */
638 private isAlwaysIgnored(rel: string): boolean {
639 // First path segment. Ignore any CodeGraph data dir — the active one AND a
640 // sibling like `.codegraph-win` a second environment (Windows/WSL) created
641 // in the same tree, so neither side watches the other's index (#636).
642 const top = rel.split('/')[0] ?? rel;
643 return (
644 isCodeGraphDataDir(top) ||
645 rel === '.git' || rel.startsWith('.git/')
646 );
647 }
648
649 /**
650 * True for any directory that should NOT be watched (used while building the

Callers 2

handleChangeMethod · 0.95
shouldIgnoreDirMethod · 0.95

Calls 1

isCodeGraphDataDirFunction · 0.90

Tested by

no test coverage detected