package irmin-indexeddb

  1. Overview
  2. Docs

Signature for Ref implementations

Signature for reference IDs (i.e. branch names).

include Irmin.Hum.S
include Tc.S0
type t
val equal : t Tc.equal
val compare : t Tc.compare
val hash : t Tc.hash
val to_json : t Tc.to_json

The REST inteface.

val of_json : t Tc.of_json
val size_of : t Tc.size_of

The serialization format.

val write : t Tc.writer
val read : t Tc.reader
val to_hum : t -> string

Display a value using its human readable representation.

val of_hum : string -> t

Convert a human readable representation of a value into its abstract value.

  • raises Invalid_argument

    if the string does not represent anything meaningful.

val master : t

The name of the master branch.

val is_valid : t -> bool

Check if the branch ID is valid.