Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
307 B · 8 lines
TypeScript
at main
123456789import { findGitRoot } from '../git.js'
// Note: This is used to check git repo status synchronously// Uses findGitRoot which walks the filesystem (no subprocess)// Prefer `dirIsInGitRepo()` for async checksexport function projectIsInGitRepo(cwd: string): boolean { return findGitRoot(cwd) !== null}