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.6.0.tbz
sha256=1db134221e82c424260a0e206b640fcb82902be35eea4137af2bcd9c98d3ac0f
sha512=b334e5b909563787e58790e4665f78a9f21e0f9f976eb7344cb76cbe7db870506bab193cec206e338ba74457896b2176000c936397cf3d44326507300a8193d6

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.