MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / getChangedFiles

Function getChangedFiles

packages/bumpy/src/core/git.ts:144–149  ·  view source on GitHub ↗
(rootDir: string, baseBranch: string)

Source from the content-addressed store, hash-verified

142
143/** Get files changed on this branch compared to a base branch */
144export function getChangedFiles(rootDir: string, baseBranch: string): string[] {
145 const ref = getBaseCompareRef(rootDir, baseBranch);
146 const diff = tryRunArgs(['git', 'diff', '--name-only', ref], { cwd: rootDir });
147 if (!diff) return [];
148 return diff.split('\n').filter(Boolean);
149}
150
151/**
152 * Read a file's contents at a given git ref.

Callers 6

detectFunction · 0.90
checkCommandFunction · 0.90
statusCommandFunction · 0.90
addCommandFunction · 0.90
ciCheckCommandFunction · 0.90

Calls 2

tryRunArgsFunction · 0.90
getBaseCompareRefFunction · 0.85

Tested by 1

detectFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…