(args)
| 28 | const calls: string[][] = []; |
| 29 | const runtime: ReviewGitRuntime = { |
| 30 | async runGit(args) { |
| 31 | calls.push(args); |
| 32 | if (args[0] === "show-ref" && args[3] === "refs/remotes/origin/main") { |
| 33 | return result(); |
| 34 | } |
| 35 | if (args[0] === "diff") { |
| 36 | return result("diff --git a/src/auth.ts b/src/auth.ts\n"); |
| 37 | } |
| 38 | return result("", "unexpected", 1); |
| 39 | }, |
| 40 | async readTextFile() { |
| 41 | return null; |
| 42 | }, |