MCPcopy
hub / github.com/openclaw/clawsweeper / changedFilesForCommit

Function changedFilesForCommit

src/commit-classifier.ts:149–157  ·  view source on GitHub ↗
(targetDir: string, sha: string, parents: string[])

Source from the content-addressed store, hash-verified

147}
148
149export function changedFilesForCommit(targetDir: string, sha: string, parents: string[]): string[] {
150 const args = parents[0]
151 ? ["diff", "--name-only", `${parents[0]}..${sha}`]
152 : ["diff-tree", "--root", "--no-commit-id", "--name-only", "-r", sha];
153 return run("git", args, { cwd: targetDir })
154 .split("\n")
155 .map((file) => file.trim())
156 .filter(Boolean);
157}
158
159export function skippedNonCodeReport(options: {
160 targetRepo: string;

Callers 1

classifyCommandFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected