(root: string)
| 70 | } |
| 71 | |
| 72 | async function isInsideGitWorkTree(root: string): Promise<boolean> { |
| 73 | try { |
| 74 | const { stdout } = await execFileAsync('git', ['-C', root, 'rev-parse', '--is-inside-work-tree']); |
| 75 | return stdout.trim() === 'true'; |
| 76 | } catch { |
| 77 | return false; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | async function scanWithGit( |
| 82 | root: string, |