(cwd: string)
| 20 | } from "./"; |
| 21 | |
| 22 | async function getCommitCount(cwd: string) { |
| 23 | const cmd = await spawn("git", ["rev-list", "--count", "HEAD"], { cwd }); |
| 24 | return parseInt(cmd.stdout.toString(), 10); |
| 25 | } |
| 26 | |
| 27 | describe("git", () => { |
| 28 | describe("getDivergedCommit", () => { |