A Git Commit object. Which specifies the top-level Tree
.t for the snapshot of the project at a point; the author/committer information and the commit message.
val make : tree:Hash.t -> author:User.t -> committer:User.t -> ?parents:Hash.t list -> ?extra:(string * string list) list -> string -> t
make ~author ~committer ?parents ~tree msg
makes an OCaml value t
. ?parents
should be a non-empty list and corresponds to a list of hashes of commits. tree
should be a hash of a Tree.t
object.
This function does not write a new commit on the store and does not check the validity of parents
and tree
. By this way, this function never fails.
module MakeMeta : functor (Meta : Encore.Meta.S) -> sig ... end
module A : sig ... end
module M : sig ... end
module D : sig ... end
module E : sig ... end
val length : t -> int64
length t
returns the length of the commit object t
.
val message : t -> string
message c
returns the message of the commit c
.
val extra : t -> (string * string list) list