(originUrl: string | null, repoRoot: string)
| 90 | "diff", |
| 91 | "--no-color", |
| 92 | "--src-prefix=a/", |
| 93 | "--dst-prefix=b/", |
| 94 | ] as const; |
| 95 | |
| 96 | export 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) { |
no outgoing calls
no test coverage detected