package git-unix

  1. Overview
  2. Docs
module Hash : sig ... end
module Inflate : sig ... end
module Deflate : sig ... end
module Value : sig ... end
module Reference : sig ... end
type t = Store.t
type error = Store.error
val pp_error : error Fmt.t
type buffer = Store.buffer
val default_buffer : unit -> buffer
val buffer : ?ztmp:Cstruct.t -> ?etmp:Cstruct.t -> ?dtmp:Cstruct.t -> ?raw:Cstruct.t -> ?window:Inflate.window -> unit -> buffer
val dotgit : t -> Fpath.t
val root : t -> Fpath.t
val compression : t -> int
val contents : t -> ((Hash.t * Value.t) list, error) result Lwt.t
val size : t -> Hash.t -> (int64, error) result Lwt.t
val read : t -> Hash.t -> (Value.t, error) result Lwt.t
val read_exn : t -> Hash.t -> Value.t Lwt.t
val mem : t -> Hash.t -> bool Lwt.t
val list : t -> Hash.t list Lwt.t
val write : t -> Value.t -> (Hash.t * int, error) result Lwt.t
val fold : t -> ('acc -> ?name:Git.Path.t -> length:int64 -> Hash.t -> Value.t -> 'acc Lwt.t) -> path:Git.Path.t -> 'acc -> Hash.t -> 'acc Lwt.t
val iter : t -> (Hash.t -> Value.t -> unit Lwt.t) -> Hash.t -> unit Lwt.t
module Pack : sig ... end
module Ref : sig ... end
val reset : t -> (unit, error) result Lwt.t
val clear_caches : t -> unit Lwt.t
val read_inflated : t -> Hash.t -> ([ `Blob | `Commit | `Tag | `Tree ] * Cstruct.t) option Lwt.t
val write_inflated : t -> kind:[ `Blob | `Commit | `Tag | `Tree ] -> Cstruct.t -> Hash.t Lwt.t
val has_global_watches : bool
val has_global_checkout : bool