(ctx context.Context, sha string)
| 415 | } |
| 416 | |
| 417 | func (c *Client) CommitBody(ctx context.Context, sha string) (string, error) { |
| 418 | output, err := c.lookupCommit(ctx, sha, "%b") |
| 419 | return string(output), err |
| 420 | } |
| 421 | |
| 422 | func (c *Client) lookupCommit(ctx context.Context, sha, format string) ([]byte, error) { |
| 423 | args := []string{"-c", "log.ShowSignature=false", "show", "-s", "--pretty=format:" + format, sha} |