(ctx context.Context, sha string)
| 421 | } |
| 422 | |
| 423 | func (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 | |
| 428 | func (c *Client) lookupCommit(ctx context.Context, sha, format string) ([]byte, error) { |
| 429 | args := []string{"-c", "log.ShowSignature=false", "show", "-s", "--pretty=format:" + format, sha} |