EncodeWithoutSignature export a Commit into a plumbing.EncodedObject without the signature (correspond to the payload of the PGP signature).
(o plumbing.EncodedObject)
| 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 { |
| 284 | return c.encode(o, false) |
| 285 | } |
| 286 | |
| 287 | func (c *Commit) encode(o plumbing.EncodedObject, includeSig bool) (err error) { |
| 288 | o.SetType(plumbing.CommitObject) |