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

Function commit

packages/computer/src/git/status.test.ts:28–32  ·  view source on GitHub ↗
(name: string, content: string, message: string)

Source from the content-addressed store, hash-verified

26}
27
28async function commit(name: string, content: string, message: string) {
29 await memfs.promises.writeFile(`${DIR}/${name}`, content);
30 await git.add({ fs: memfs, dir: DIR, filepath: name });
31 await git.commit({ fs: memfs, dir: DIR, message, author: AUTHOR });
32}
33
34describe("statusWith — derived XY codes", () => {
35 beforeEach(() => vol.reset());

Callers 1

status.test.tsFile · 0.70

Calls 3

writeFileMethod · 0.65
addMethod · 0.65
commitMethod · 0.65

Tested by

no test coverage detected