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

Function buildScopeIgnore

src/extraction/index.ts:505–512  ·  view source on GitHub ↗
(rootDir: string, embeddedRoots?: Iterable<string>)

Source from the content-addressed store, hash-verified

503 * skip rediscovery; otherwise they're discovered here (the watcher path).
504 */
505export function buildScopeIgnore(rootDir: string, embeddedRoots?: Iterable<string>): ScopeIgnore {
506 const roots = embeddedRoots ? [...embeddedRoots] : discoverEmbeddedRepoRoots(rootDir);
507 return new ScopeIgnore(
508 buildDefaultIgnore(rootDir),
509 roots.map((root) => ({ root, matcher: buildDefaultIgnore(path.join(rootDir, root)) })),
510 loadExcludeMatcher(rootDir),
511 );
512}
513
514/**
515 * Whether an embedded repo found as a tracked gitlink (mode 160000, #1031/#1033)

Callers 4

startMethod · 0.90
extraction.test.tsFile · 0.90
getGitVisibleFilesFunction · 0.85

Calls 4

buildDefaultIgnoreFunction · 0.85
loadExcludeMatcherFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected