Make.BranchManipulate branches.
Manipulate relations between branches and commits.
find r b is Some c iff c is bound to b in t. It is None if b is not present in t.
get t b is similar to find but raise Invalid_argument if b is not present in t.
watch t b f calls f on every change in b.
val watch_all :
repo ->
?init:(branch * commit) list ->
(branch -> commit Irmin.Diff.t -> unit Lwt.t) ->
watch Lwt.twatch_all t f calls f on every branch-related change in t, including creation/deletion events.
Base functions for branches.
include Irmin.Branch.S with type t = branchtype t = branchThe type for branches.
val t : t Irmin.Type.tval main : tThe name of the main branch.
val is_valid : t -> boolCheck if the branch is valid.