MCPcopy Index your code
hub / github.com/anomalyco/opencode / commit

Function commit

packages/core/test/fixture/git.ts:32–37  ·  view source on GitHub ↗
(source: string, content: string, message: string)

Source from the content-addressed store, hash-verified

30}
31
32export async function commit(source: string, content: string, message: string) {
33 await fs.writeFile(path.join(source, "README.md"), content)
34 await git(source, "add", "README.md")
35 await git(source, "commit", "-m", message)
36 await git(source, "push")
37}
38
39export async function branch(source: string, name: string, content: string) {
40 await git(source, "checkout", "-b", name)

Callers 3

git.test.tsFile · 0.90
createFunction · 0.50
commitDurableEventFunction · 0.50

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected