MCPcopy Create free account
hub / github.com/codeHappyDananx/SpecWave / isGitRepoRoot

Function isGitRepoRoot

electron/main.js:1084–1091  ·  view source on GitHub ↗
(cwd)

Source from the content-addressed store, hash-verified

1082}
1083
1084function isGitRepoRoot(cwd) {
1085 const gitDir = path.join(cwd, '.git')
1086 try {
1087 return fs.existsSync(gitDir) && fs.statSync(gitDir).isDirectory()
1088 } catch {
1089 return false
1090 }
1091}
1092
1093function ensureGitignoreLine(cwd, pattern) {
1094 const gitignorePath = path.join(cwd, '.gitignore')

Callers 1

saveClipboardImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected