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