MCPcopy Create free account
hub / github.com/cli/cli / CommitBody

Method CommitBody

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

Source from the content-addressed store, hash-verified

421}
422
423func (c *Client) CommitBody(ctx context.Context, sha string) (string, error) {
424 output, err := c.lookupCommit(ctx, sha, "%b")
425 return string(output), err
426}
427
428func (c *Client) lookupCommit(ctx context.Context, sha, format string) ([]byte, error) {
429 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