Download src/utils/memory/versions.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/main/src/utils/memory/versions.ts
- Command line
-
hf download hf://chenbhao/codev/src/utils/memory/versions.ts
-
curl -L -o versions.ts https://huggingface.co/chenbhao/codev/resolve/main/src/utils/memory/versions.ts
307 Bytes
| 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 | |
| } | |