Encode transforms a Commit into a plumbing.EncodedObject.
(o plumbing.EncodedObject)
| 284 | |
| 285 | // Encode transforms a Commit into a plumbing.EncodedObject. |
| 286 | func (c *Commit) Encode(o plumbing.EncodedObject) error { |
| 287 | return c.encode(o, true) |
| 288 | } |
| 289 | |
| 290 | // EncodeWithoutSignature exports a Commit into a plumbing.EncodedObject |
| 291 | // without any signature headers, producing the payload that PGP/GPG |