ContentToSign returns the content that will be passed to a signing function for this commit
()
| 62 | |
| 63 | // ContentToSign returns the content that will be passed to a signing function for this commit |
| 64 | func (c *Commit) ContentToSign() string { |
| 65 | return c.RawHeader() + "\n" + c.RawMessage() |
| 66 | } |
| 67 | |
| 68 | // CommitSigningCallback defines a function type that takes some data to sign and returns (signature, signature_field, error) |
| 69 | type CommitSigningCallback func(string) (signature, signatureField string, err error) |