MCPcopy
hub / github.com/codeaashu/claude-code / projectIsInGitRepo

Function projectIsInGitRepo

src/utils/memory/versions.ts:6–8  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

4// Uses findGitRoot which walks the filesystem (no subprocess)
5// Prefer `dirIsInGitRepo()` for async checks
6export function projectIsInGitRepo(cwd: string): boolean {
7 return findGitRoot(cwd) !== null
8}
9

Callers 1

MemoryFileSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected