()
| 399 | } |
| 400 | |
| 401 | func (c *Commit) String() string { |
| 402 | return fmt.Sprintf( |
| 403 | "%s %s\nAuthor: %s\nDate: %s\n\n%s\n", |
| 404 | plumbing.CommitObject, c.Hash, c.Author.String(), |
| 405 | c.Author.When.Format(DateFormat), indent(c.Message), |
| 406 | ) |
| 407 | } |
| 408 | |
| 409 | // Verify performs PGP verification of the commit with a provided armored |
| 410 | // keyring and returns openpgp.Entity associated with verifying key on success. |