irmin.mem
KV.Commit
Commit defines immutable objects to describe store updates.
Commit
irmin
type t = commit
The type for store commits.
val t : repo -> t Irmin.Type.t
t is the value type for t.
t
val pp_hash : t Fmt.t
pp is the pretty-printer for commit. Display only the hash.
pp
val v : repo -> info:Irmin.Info.t -> parents:hash list -> tree -> commit Lwt.t
v r i ~parents:p t is the commit c such that:
v r i ~parents:p t
c
info c = i
parents c = p
tree c = t
val tree : commit -> tree
tree c is c's root tree.
tree c
val parents : commit -> hash list
parents c are c's parents.
parents c
val info : commit -> Irmin.Info.t
info c is c's info.
info c
val hash : commit -> hash
hash c it c's hash.
hash c
val of_hash : repo -> hash -> commit option Lwt.t
of_hash r h is the the commit object in r having h as hash, or None is no such commit object exists.
of_hash r h
r
h
None