package irmin-pack

  1. Overview
  2. Docs
Irmin backend which stores values in a pack file

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-2.5.2.tbz
sha256=ac8d75144cafdaf4b5e106b540a27338245510b7e33a8c412d393c9d50cae490
sha512=6108448c73d23648bc4fb27722f21a007990e7ed4739cc08f920a140033805fb87c6fe3935e466dfe264ea0bb01e18da571d42f5624d84979a4fea9aee4a1d19

doc/irmin-pack.layered/Irmin_pack_layered/Checks/Make/argument-1-M/Contents/index.html

Module M.Contents

Contents provides base functions for the store's contents.

Signature for store contents

type t = contents

The type for user-defined contents.

val t : t Irmin__.Type.t
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.

Import/Export

val hash : contents -> hash

hash c it c's hash in the repository r.

val of_hash : repo -> hash -> contents option Lwt.t

of_hash r h is the the contents object in r having h as hash, or None is no such contents object exists.

OCaml

Innovation. Community. Security.