MCPcopy
hub / github.com/garrytan/gstack / getChangedFiles

Function getChangedFiles

test/helpers/touchfiles.ts:841–847  ·  view source on GitHub ↗
(baseBranch: string, cwd: string)

Source from the content-addressed store, hash-verified

839 * Get list of files changed between base branch and HEAD.
840 */
841export 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

Callers 8

codex-e2e.test.tsFile · 0.90
skill-e2e.test.tsFile · 0.90
gemini-e2e.test.tsFile · 0.90
e2e-helpers.tsFile · 0.90
eval-select.tsFile · 0.90

Calls 1

spawnSyncFunction · 0.85

Tested by

no test coverage detected