(baseBranch: string, cwd: string)
| 839 | * Get list of files changed between base branch and HEAD. |
| 840 | */ |
| 841 | export function getChangedFiles(baseBranch: string, cwd: string): string[] { |
| 842 | const result = spawnSync('git', ['diff', '--name-only', `${baseBranch}...HEAD`], { |
| 843 | cwd, stdio: 'pipe', timeout: 5000, |
| 844 | }); |
| 845 | if (result.status !== 0) return []; |
| 846 | return result.stdout.toString().trim().split('\n').filter(Boolean); |
| 847 | } |
| 848 | |
| 849 | // --- Test selection --- |
| 850 |
no test coverage detected