MCPcopy Create free account
hub / github.com/cloudflare/computer / commit

Function commit

packages/computer/src/git/refs.test.ts:32–36  ·  view source on GitHub ↗
(path: string, content: string, message: string)

Source from the content-addressed store, hash-verified

30}
31
32async function commit(path: string, content: string, message: string): Promise<string> {
33 await memfs.promises.writeFile(`${DIR}/${path}`, content);
34 await git.add({ fs: memfs, dir: DIR, filepath: path });
35 return git.commit({ fs: memfs, dir: DIR, message, author: AUTHOR });
36}
37
38describe("branchWith", () => {
39 beforeEach(() => vol.reset());

Callers 1

refs.test.tsFile · 0.70

Calls 3

writeFileMethod · 0.65
addMethod · 0.65
commitMethod · 0.65

Tested by

no test coverage detected