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

Function parseRepoName

packages/cli/src/git.ts:92–100  ·  view source on GitHub ↗
(originUrl: string | null, repoRoot: string)

Source from the content-addressed store, hash-verified

90 "diff",
91 "--no-color",
92 "--src-prefix=a/",
93 "--dst-prefix=b/",
94] as const;
95
96export function buildDiffArgs(run: ChapterRunRow): string[] {
97 if (run.scopeKind === SCOPE_KIND.COMMITTED) {
98 return [...DIFF_BASE_ARGS, `${run.baseSha}..${run.headSha}`];
99 }
100 if (run.workingTreeRef === null) {
101 throw new Error("workingTree run is missing workingTreeRef");
102 }
103 switch (run.workingTreeRef) {

Callers 2

mapRunFunction · 0.85
git.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected