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

Function gitRun

packages/opencode/src/cli/cmd/github.handler.ts:455–461  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

453 return result.text().trim()
454 }
455 const gitRun = async (args: string[]) => {
456 const result = await Effect.runPromise(gitSvc.run(args, { cwd: ctx.worktree }))
457 if (result.exitCode !== 0) {
458 throw new Process.RunFailedError(["git", ...args], result.exitCode, result.stdout, result.stderr)
459 }
460 return result
461 }
462 const gitStatus = (args: string[]) => Effect.runPromise(gitSvc.run(args, { cwd: ctx.worktree }))
463 const commitChanges = async (summary: string, actor?: string) => {
464 const args = ["commit", "-m", summary]

Callers 9

commitChangesFunction · 0.85
configureGitFunction · 0.85
restoreGitConfigFunction · 0.85
checkoutNewBranchFunction · 0.85
checkoutLocalBranchFunction · 0.85
checkoutForkBranchFunction · 0.85
pushToNewBranchFunction · 0.85
pushToLocalBranchFunction · 0.85
pushToForkBranchFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected