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

Function getUntrackedFiles

packages/cli/src/git.ts:154–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153 throw new Error(
154 "No default branch detected. Tried origin/HEAD, main, master, origin/main, and origin/master.",
155 );
156}
157
158export function resolveMergeBase(base: string): string {
159 return execFileSync("git", ["merge-base", base, "HEAD"], {
160 encoding: "utf8",
161 stdio: ["ignore", "pipe", "ignore"],
162 }).trim();
163}

Callers 1

buildWorkingTreeDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected