package carton-miou

  1. Overview
  2. Docs
Implementation of PACK file in OCaml for Miou

Install

dune-project
 Dependency

Authors

Maintainers

Sources

carton-1.4.0.tbz
sha256=431e7df0e1c25209e502bec2125218921ce2652390d82c4fbd973655814ac247
sha512=f0dafcb8b175605164f2b177f3e4cb22485abdfadb2c36178c81e838c76e28d3a038d63ecbe2c649bbd70c1520ea81db954b9af0bd531b11a8ec08c25a60e95a

doc/carton-miou.bundle/Carton_miou_bundle/index.html

Module Carton_miou_bundleSource

Read and produce git-bundle files.

Sourceval of_packs : cfg:Carton_miou_unix.config -> digest:Carton.First_pass.digest -> sort:Carton_miou_unix.sort -> ?level:int -> Bundle.t -> Fpath.t list -> string Seq.t

of_packs ~cfg ~digest ~sort hdr packs is the bundle stream made of the header hdr followed by a PACK re-delta-ified from the given packs (see Carton_miou_unix.merge).

Sourceval read : ?ref_length:int -> Fpath.t -> (Bundle.t * string Seq.t, [> `Msg of string ]) result

read filename is the header of the bundle filename and the stream of the PACK bytes it contains.

Note: the returned sequence is not persistent.

Sourceval split : ?ref_length:int -> Fpath.t -> pack:Fpath.t -> (Bundle.t, [> `Msg of string ]) result

split filename ~pack extracts the PACK contained into the bundle filename to pack and returns the header of the bundle.

Note: if the bundle has prerequisites (Bundle.is_thin), the extracted PACK is thin and the missing sources must be given back to Carton as Carton.location.Extern objects.

/

Sourceval save : Fpath.t -> string Seq.t -> unit