(workDir: string)
| 156 | } |
| 157 | |
| 158 | function readBranch(workDir: string): string | null { |
| 159 | try { |
| 160 | const result = spawnSync('git', ['-C', workDir, 'branch', '--show-current'], { |
| 161 | encoding: 'utf8', |
| 162 | timeout: SPAWN_TIMEOUT_MS, |
| 163 | }); |
| 164 | if (result.status !== 0) return null; |
| 165 | const name = result.stdout.trim(); |
| 166 | return name.length > 0 ? name : null; |
| 167 | } catch { |
| 168 | return null; |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | function readStatus(workDir: string): { |
| 173 | dirty: boolean; |
no outgoing calls
no test coverage detected