MCPcopy Create free account
hub / github.com/backnotprop/plannotator / runGit

Function runGit

packages/shared/pr-stack.test.ts:30–39  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

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 },

Callers

nothing calls this directly

Calls 4

resultFunction · 0.85
hasMethod · 0.80
deleteMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected