π File detail
utils/memory/versions.ts
π― Use case
This file lives under βutils/β, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, β¦). On the API surface it exposes projectIsInGitRepo β mainly functions, hooks, or classes. It composes internal code from git (relative imports). What the file header says: Note: This is used to check git repo status synchronously Uses findGitRoot which walks the filesystem (no subprocess) Prefer `dirIsInGitRepo()` for async checks.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
Note: This is used to check git repo status synchronously Uses findGitRoot which walks the filesystem (no subprocess) Prefer `dirIsInGitRepo()` for async checks
π€ Exports (heuristic)
projectIsInGitRepo
π₯οΈ Source preview
import { 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 checks
export function projectIsInGitRepo(cwd: string): boolean {
return findGitRoot(cwd) !== null
}