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

Function isWholeCwdEntry

src/extraction/index.ts:503–505  ·  view source on GitHub ↗

* `git ls-files --directory` collapses a wholly-untracked/ignored directory into * one entry — and when the command's own cwd is such a directory (the indexed * root is itself a git-ignored subdir of an enclosing repo), git emits the * literal `./` meaning "this entire directory". That sentinel i

(entry: string)

Source from the content-addressed store, hash-verified

501 * `--directory` output. (#936)
502 */
503function isWholeCwdEntry(entry: string): boolean {
504 return entry === './' || entry === '.' || entry === '';
505}
506
507/**
508 * List the gitignored DIRECTORIES of a repo (collapsed, trailing-slash form),

Callers 2

listIgnoredDirsFunction · 0.85
visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected