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

Function gitText

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

Source from the content-addressed store, hash-verified

446 : "issue"
447 : undefined
448 const gitText = async (args: string[]) => {
449 const result = await Effect.runPromise(gitSvc.run(args, { cwd: ctx.worktree }))
450 if (result.exitCode !== 0) {
451 throw new Process.RunFailedError(["git", ...args], result.exitCode, result.stdout, result.stderr)
452 }
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) {

Callers 2

github.handler.tsFile · 0.85
branchIsDirtyFunction · 0.85

Calls 2

textMethod · 0.65
runMethod · 0.45

Tested by

no test coverage detected