Library
Module
Module type
Parameter
Class
Class type
Repositories.
A repository contains a set of branches.
type t = repo
The type of repository handles.
close t
frees up all resources associated with t
. Any operations run on a closed repository will raise Closed
.
branches
is Branch.list
.
val 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.