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

Function loadIncludeIgnoredMatcher

src/extraction/index.ts:321–324  ·  view source on GitHub ↗

* Matcher for the project's `codegraph.json` `includeIgnored` patterns — the * explicit opt-in to index embedded git repos living inside gitignored * directories (#622, #699). Returns `null` when the project opted in nothing, * which is the zero-config DEFAULT: `.gitignore` is then fully respecte

(rootDir: string)

Source from the content-addressed store, hash-verified

319 * root and threaded down — never global, so multi-project daemons stay isolated.
320 */
321function loadIncludeIgnoredMatcher(rootDir: string): Ignore | null {
322 const patterns = loadIncludeIgnoredPatterns(rootDir);
323 return patterns.length > 0 ? ignore().add(patterns) : null;
324}
325
326/**
327 * Matcher for the project's `codegraph.json` `exclude` patterns — paths to keep

Callers 4

getGitVisibleFilesFunction · 0.85
getGitChangedFilesFunction · 0.85

Calls 1

Tested by

no test coverage detected