package irmin-git
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=11fc2570bdbfd48478c89113fc801084a84a9a2c12d9bf8c64e05ce64ae19bd7
sha512=2171699ca24dec5c9c908a2676b272e034c14eb17f7052a794535e52af0be40be68a689e59c0a640ee244b11703320483f4d0c261542e6242ba23a8f1272b9b0
doc/irmin-git.unix/Irmin_git_unix/Maker/argument-1-G/Value/Commit/index.html
Module Value.Commit
type hash = hashtype nonrec t = hash Git.Commit.tval make :
tree:hash ->
author:Git.User.t ->
committer:Git.User.t ->
?parents:hash list ->
?extra:(string * string list) list ->
string option ->
tmake ~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 parent commits. tree should be a hash of a Tree.t object.
Note. 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.
digest t associates a hash to any value of t. It is guaranteed that if x = y or compare x y = 0, then digest x = digest y.
val hash : t -> inthash blob associates a non-negative integer to any value of t. It is guaranteed that if x = y or compare x y = 0, then hash x = hash y.
Sets and Maps.
val length : t -> int64length t returns the length of the given commit object.
val committer : t -> Git.User.tcommitter t returns the committer of the given commit object.
val author : t -> Git.User.tauthor c returns the author of the given commit object.
val message : t -> string optionmessage c returns the message of the given commit object.
val extra : t -> (string * string list) list