Library
Module
Module type
Parameter
Class
Class type
Contents
provides base functions for the store's contents.
include Irmin.Contents.S with type t = contents
type t = contents
The type for user-defined contents.
val t : t Irmin.Type.t
t
is the value type for t
.
val of_string : string -> (t, [ `Msg of string ]) Result.result
of_string
parses contents.
val merge : t option Irmin.Merge.t
Merge function. Evaluates to `Conflict msg
if the values cannot be merged properly. The arguments of the merge function can take None
to mean that the key does not exists for either the least-common ancestor or one of the two merging points. The merge function returns None
when the key's value should be deleted.
module Hash : Irmin.Hash.S with type t = hash
Hash
provides base functions for contents hashes.