MCPcopy
hub / github.com/go-git/go-git / Encode

Method Encode

plumbing/object/commit.go:286–288  ·  view source on GitHub ↗

Encode transforms a Commit into a plumbing.EncodedObject.

(o plumbing.EncodedObject)

Source from the content-addressed store, hash-verified

284
285// Encode transforms a Commit into a plumbing.EncodedObject.
286func (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

Callers 2

writeCommitToRefFunction · 0.95
buildCommitObjectMethod · 0.95

Calls 1

encodeMethod · 0.95

Tested by 1

writeCommitToRefFunction · 0.76