MCPcopy Index your code
hub / github.com/cli/cli / CommitBody

Method CommitBody

git/client.go:361–364  ·  view source on GitHub ↗
(ctx context.Context, sha string)

Source from the content-addressed store, hash-verified

359}
360
361func (c *Client) CommitBody(ctx context.Context, sha string) (string, error) {
362 output, err := c.lookupCommit(ctx, sha, "%b")
363 return string(output), err
364}
365
366func (c *Client) lookupCommit(ctx context.Context, sha, format string) ([]byte, error) {
367 args := []string{"-c", "log.ShowSignature=false", "show", "-s", "--pretty=format:" + format, sha}

Callers 1

TestClientCommitBodyFunction · 0.95

Calls 1

lookupCommitMethod · 0.95

Tested by 1

TestClientCommitBodyFunction · 0.76