package git-mirage

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module G : Git.S

Signature

module Tcp : Git.Sync.S with module Store := G and type Endpoint.t = endpoint
module Http : Git_http.Sync.S with module Store := G and type Client.endpoint = endpoint
include Git.Sync.S with module Store := G and type Endpoint.t = endpoint
module Endpoint : sig ... end
type error
val pp_error : error Fmt.t
type command = [
  1. | `Create of G.Hash.t * G.Reference.t
  2. | `Delete of G.Hash.t * G.Reference.t
  3. | `Update of G.Hash.t * G.Hash.t * G.Reference.t
]
val pp_command : command Fmt.t
val push : G.t -> push: ((G.Hash.t * G.Reference.t * bool) list -> (G.Hash.t list * command list) Lwt.t) -> ?capabilities:Git__.Capability.t list -> Endpoint.t -> ((G.Reference.t, G.Reference.t * string) Stdlib.result list, error) Stdlib.result Lwt.t
val ls : G.t -> ?capabilities:Git__.Capability.t list -> Endpoint.t -> ((G.Hash.t * G.Reference.t * bool) list, error) Stdlib.result Lwt.t
val fetch : G.t -> ?shallow:G.Hash.t list -> ?capabilities:Git__.Capability.t list -> notify:(G.Hash.t Git__Sync.shallow_update -> unit Lwt.t) -> negociate: ((G.Hash.t Git__Sync.acks -> 'state -> ([ `Again of G.Hash.Set.t | `Done | `Ready ] * 'state) Lwt.t) * 'state) -> have:G.Hash.Set.t -> want: ((G.Hash.t * G.Reference.t * bool) list -> (G.Reference.t * G.Hash.t) list Lwt.t) -> ?deepen:[ `Depth of int | `Ref of Git__.Reference.t | `Timestamp of int64 ] -> Endpoint.t -> ((G.Reference.t * G.Hash.t) list * int, error) Stdlib.result Lwt.t
val fetch_some : G.t -> ?capabilities:Git__.Capability.t list -> references:G.Reference.t list G.Reference.Map.t -> Endpoint.t -> (G.Hash.t G.Reference.Map.t * G.Reference.t list G.Reference.Map.t, error) Stdlib.result Lwt.t
val fetch_all : G.t -> ?capabilities:Git__.Capability.t list -> references:G.Reference.t list G.Reference.Map.t -> Endpoint.t -> (G.Hash.t G.Reference.Map.t * G.Reference.t list G.Reference.Map.t * G.Hash.t G.Reference.Map.t, error) Stdlib.result Lwt.t
val fetch_one : G.t -> ?capabilities:Git__.Capability.t list -> reference:(G.Reference.t * G.Reference.t list) -> Endpoint.t -> ([ `AlreadySync | `Sync of G.Hash.t G.Reference.Map.t ], error) Stdlib.result Lwt.t
val pp_fetch_one : [ `AlreadySync | `Sync of G.Hash.t G.Reference.Map.t ] Fmt.t
val clone : G.t -> ?capabilities:Git__.Capability.t list -> reference:(G.Reference.t * G.Reference.t) -> Endpoint.t -> (unit, error) Stdlib.result Lwt.t
val update_and_create : G.t -> ?capabilities:Git__.Capability.t list -> references:G.Reference.t list G.Reference.Map.t -> Endpoint.t -> ((G.Reference.t, G.Reference.t * string) Stdlib.result list, error) Stdlib.result Lwt.t
val pp_update_and_create : (G.Reference.t, G.Reference.t * string) Stdlib.result list Fmt.t
OCaml

Innovation. Community. Security.