Encode transforms a Commit into a plumbing.EncodedObject.
(o plumbing.EncodedObject)
| 276 | |
| 277 | // Encode transforms a Commit into a plumbing.EncodedObject. |
| 278 | func (c *Commit) Encode(o plumbing.EncodedObject) error { |
| 279 | return c.encode(o, true) |
| 280 | } |
| 281 | |
| 282 | // EncodeWithoutSignature export a Commit into a plumbing.EncodedObject without the signature (correspond to the payload of the PGP signature). |
| 283 | func (c *Commit) EncodeWithoutSignature(o plumbing.EncodedObject) error { |