(startDir: string)
| 83 | } |
| 84 | |
| 85 | function findGitWorktreeRoot(startDir: string): string | undefined { |
| 86 | let current = startDir; |
| 87 | while (true) { |
| 88 | if (fs.existsSync(path.join(current, '.git'))) { |
| 89 | return current; |
| 90 | } |
| 91 | const parent = path.dirname(current); |
| 92 | if (parent === current) return undefined; |
| 93 | current = parent; |
| 94 | } |
| 95 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…