chore: initialize recovered claude workspace
This commit is contained in:
8
src/utils/memory/versions.ts
Normal file
8
src/utils/memory/versions.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user