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

Function loadIncludeIgnoredMatcher

src/extraction/index.ts:306–309  ·  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

304 * root and threaded down — never global, so multi-project daemons stay isolated.
305 */
306function loadIncludeIgnoredMatcher(rootDir: string): Ignore | null {
307 const patterns = loadIncludeIgnoredPatterns(rootDir);
308 return patterns.length > 0 ? ignore().add(patterns) : null;
309}
310
311/**
312 * Matcher for the project's `codegraph.json` `exclude` patterns — paths to keep

Callers 3

getGitVisibleFilesFunction · 0.85
getGitChangedFilesFunction · 0.85

Calls 1

Tested by

no test coverage detected