Documentation
¶
Overview ¶
Package commit provides parsed commit objects and commit serialization.
It parses commits into ordinary Go values for reading and construction. It does not preserve the exact original byte layout needed for signature verification; callers that need signature-verification payload fidelity should use codeberg.org/lindenii/furgit/object/signed/commit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
Tree objectid.ObjectID
Parents []objectid.ObjectID
Author objectsignature.Signature
Committer objectsignature.Signature
Message []byte
ChangeID string
ExtraHeaders []ExtraHeader
}
Commit represents a fully materialized Git commit object.
Labels: MT-Unsafe.
func (*Commit) ObjectType ¶
func (commit *Commit) ObjectType() objecttype.Type
ObjectType returns TypeCommit.
func (*Commit) SerializeWithHeader ¶
SerializeWithHeader renders the raw object (header + body).
func (*Commit) SerializeWithoutHeader ¶
SerializeWithoutHeader renders the raw commit body bytes.
type ExtraHeader ¶
ExtraHeader represents an extra header in a Git object.