MCPcopy Create free account
hub / github.com/go-git/go-git / EncodeWithoutSignature

Method EncodeWithoutSignature

plumbing/object/commit.go:283–285  ·  view source on GitHub ↗

EncodeWithoutSignature export a Commit into a plumbing.EncodedObject without the signature (correspond to the payload of the PGP signature).

(o plumbing.EncodedObject)

Source from the content-addressed store, hash-verified

281
282// EncodeWithoutSignature export a Commit into a plumbing.EncodedObject without the signature (correspond to the payload of the PGP signature).
283func (c *Commit) EncodeWithoutSignature(o plumbing.EncodedObject) error {
284 return c.encode(o, false)
285}
286
287func (c *Commit) encode(o plumbing.EncodedObject, includeSig bool) (err error) {
288 o.SetType(plumbing.CommitObject)

Callers 1

VerifyMethod · 0.95

Calls 1

encodeMethod · 0.95

Tested by

no test coverage detected