MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / getRawDiff

Function getRawDiff

packages/cli/src/git.ts:142–152  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

140}
141
142export function getRawDiff(args: string[]): string {
143 return execFileSync(
144 "git",
145 ["diff", "--no-color", "--src-prefix=a/", "--dst-prefix=b/", ...args],
146 {
147 encoding: "utf8",
148 stdio: ["ignore", "pipe", "ignore"],
149 maxBuffer: 50 * 1024 * 1024,
150 },
151 );
152}
153
154export function getUntrackedFiles(): string[] {
155 const out = execFileSync("git", ["ls-files", "--others", "--exclude-standard"], {

Callers 3

buildWorkingTreeDiffFunction · 0.85
resolveSingleRefScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected