(cwd: string)
| 4 | // Uses findGitRoot which walks the filesystem (no subprocess) |
| 5 | // Prefer `dirIsInGitRepo()` for async checks |
| 6 | export function projectIsInGitRepo(cwd: string): boolean { |
| 7 | return findGitRoot(cwd) !== null |
| 8 | } |
| 9 |
no outgoing calls
no test coverage detected