MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / getDiffOutput

Function getDiffOutput

internal/git/git.go:178–186  ·  view source on GitHub ↗

getDiffOutput returns the full diff between two refs.

(dir, from, to string)

Source from the content-addressed store, hash-verified

176
177// getDiffOutput returns the full diff between two refs.
178func getDiffOutput(dir, from, to string) (string, error) {
179 cmd := exec.Command("git", "diff", from, to)
180 cmd.Dir = dir
181 output, err := cmd.Output()
182 if err != nil {
183 return "", err
184 }
185 return string(output), nil
186}

Callers 1

GetDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected