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

Function gitIgnored

__tests__/git-ignored-dirs-scope.test.ts:52–54  ·  view source on GitHub ↗

What git reports as ignored-untracked, relative to `cwd`.

(cwd: string)

Source from the content-addressed store, hash-verified

50
51/** What git reports as ignored-untracked, relative to `cwd`. */
52function gitIgnored(cwd: string): string[] {
53 return git(cwd, 'ls-files', '-z', '-o', '-i', '--exclude-standard', '--directory').split('\0').filter(Boolean);
54}
55
56/** `rel` and every folder above it, in the forms the watcher asks about. */
57function pathAndFolders(rel: string): string[] {

Callers 1

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected