package irmin

  1. Overview
  2. Docs
Irmin, a distributed database that follows the same design principles as Git

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-2.9.0.tbz
sha256=7af11e14d312b9ae340997f8c27907b9fc9a0d19539fb643e1820d5183a76750
sha512=d7b61c6fddab0a8b61efe867b9a0fdc14c01eb1adeda2f5018b8dfee306c8324c77dd648c7cb9860e62a26e224955f9331b49d19cb693ad5d773efc53263d9fd

doc/irmin.mem/Irmin_mem/Make/Commit/index.html

Module Make.CommitSource

Commit defines immutable objects to describe store updates.

Sourcetype t = commit

The type for store commits.

t is the value type for t.

Sourceval pp_hash : t Fmt.t

pp is the pretty-printer for commit. Display only the hash.

Sourceval 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:

  • info c = i
  • parents c = p
  • tree c = t
Sourceval tree : commit -> tree

tree c is c's root tree.

Sourceval parents : commit -> hash list

parents c are c's parents.

info c is c's info.

Import/Export

Sourceval hash : commit -> hash

hash c it c's hash.

Sourceval 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.

OCaml

Innovation. Community. Security.