MCPcopy
hub / github.com/mislav/hub / Show

Function Show

git/git.go:216–224  ·  view source on GitHub ↗
(sha string)

Source from the content-addressed store, hash-verified

214}
215
216func Show(sha string) (string, error) {
217 cmd := cmd.New("git")
218 cmd.Stderr = nil
219 cmd.WithArg("-c").WithArg("log.showSignature=false")
220 cmd.WithArg("show").WithArg("-s").WithArg("--format=%s%n%+b").WithArg(sha)
221
222 output, err := cmd.Output()
223 return strings.TrimSpace(output), err
224}
225
226func Log(sha1, sha2 string) (string, error) {
227 execCmd := cmd.New("git")

Callers 2

pullRequestFunction · 0.92
TestGitShowFunction · 0.85

Calls 3

NewFunction · 0.92
WithArgMethod · 0.80
OutputMethod · 0.80

Tested by 1

TestGitShowFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…