MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / projectIsInGitRepo

Function projectIsInGitRepo

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

Source from the content-addressed store, hash-verified

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

Callers 1

MemoryFileSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected