MCPcopy Create free account
hub / github.com/garrytan/gstack / commit

Function commit

test/redact-prepush-hook.test.ts:27–32  ·  view source on GitHub ↗
(file: string, content: string, msg: string)

Source from the content-addressed store, hash-verified

25}
26
27function commit(file: string, content: string, msg: string): string {
28 fs.writeFileSync(path.join(repo, file), content);
29 git(["add", file]);
30 git(["commit", "-q", "-m", msg]);
31 return git(["rev-parse", "HEAD"]);
32}
33
34function runHook(
35 stdinLines: string,

Callers 1

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected