package irmin

  1. Overview
  2. Docs
On This Page
  1. Repositories
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Make_ext.RepoSource

Repositories.

Repositories

A repository contains a set of branches.

Sourcetype t = repo

The type of repository handles.

Sourceval v : Irmin__.Conf.t -> t Lwt.t

v config connects to a repository in a backend-specific manner.

Sourceval close : t -> unit Lwt.t

close t frees up all resources associated with t. Any operations run on a closed repository will raise Closed.

Sourceval heads : t -> commit list Lwt.t

heads is Head.list.

Sourceval branches : t -> branch list Lwt.t

branches is Branch.list.

Sourceval export : ?full:bool -> ?depth:int -> ?min:commit list -> ?max:[ `Head | `Max of commit list ] -> t -> slice Lwt.t

export t ~full ~depth ~min ~max exports the store slice between min and max, using at most depth history depth (starting from the max).

If max is `Head (also the default value), use the current heads. If min is not specified, use an unbound past (but can still be limited by depth).

depth is used to limit the depth of the commit history. None here means no limitation.

If full is set (default is true), the full graph, including the commits, nodes and contents, is exported, otherwise it is the commit history graph only.

Sourceval import : t -> slice -> (unit, [ `Msg of string ]) result Lwt.t

import t s imports the contents of the slice s in t. Does not modify branches.

OCaml

Innovation. Community. Security.