MCPcopy
hub / github.com/colbymchenry/codegraph / isAlwaysIgnored

Method isAlwaysIgnored

src/sync/watcher.ts:567–576  ·  view source on GitHub ↗

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

(rel: string)

Source from the content-addressed store, hash-verified

565
566 /** Our own dirs are always ignored, regardless of .gitignore. */
567 private isAlwaysIgnored(rel: string): boolean {
568 // First path segment. Ignore any CodeGraph data dir — the active one AND a
569 // sibling like `.codegraph-win` a second environment (Windows/WSL) created
570 // in the same tree, so neither side watches the other's index (#636).
571 const top = rel.split('/')[0] ?? rel;
572 return (
573 isCodeGraphDataDir(top) ||
574 rel === '.git' || rel.startsWith('.git/')
575 );
576 }
577
578 /**
579 * 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