MCPcopy Index your code
hub / github.com/changesets/changesets / getCommitCount

Function getCommitCount

packages/git/src/index.test.ts:22–25  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

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

Callers 1

index.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected