Xgit v0.2.5 Xgit.Core.Commit View Source
Represents a git commit
object in memory.
Link to this section Summary
Functions
Renders this commit structure into a corresponding Xgit.Core.Object
.
Return true
if the value is a commit struct that is valid.
Link to this section Types
Link to this type
t()
View Sourcet() :: %Xgit.Core.Commit{ author: Xgit.Core.PersonIdent.t(), committer: Xgit.Core.PersonIdent.t(), message: [byte()], parents: [Xgit.Core.ObjectId.t()], tree: Xgit.Core.ObjectId.t() }
This struct describes a single commit
object so it can be manipulated in memory.
Struct Members
:tree
: (Xgit.Core.ObjectId
) tree referenced by this commit:parents
: (list ofXgit.Core.ObjectId
) parent(s) of this commit:author
: (Xgit.Core.PersonIdent
) author of this commit:committer
: (Xgit.Core.PersonIdent
) committer for this commit:message
: (bytelist) user-entered commit message (encoding unspecified)
Link to this section Functions
Link to this function
to_object(commit)
View Sourceto_object(commit :: t()) :: Xgit.Core.Object.t()
Renders this commit structure into a corresponding Xgit.Core.Object
.
If duplicate parents are detected, they will be silently de-duplicated.
If the commit structure is not valid, will raise ArgumentError
.
Return true
if the value is a commit struct that is valid.