package git

  1. Overview
  2. Docs
type fetch

The resulting hashes and references.

val head_contents : fetch -> Reference.head_contents option

head_contents f is f's head contents (the value of the remote .git/HEAD).

val head : fetch -> Hash.Commit.t option

head f is f's head commit.

val references : fetch -> Hash.t Reference.Map.t

references f are f's references.

val hashes : fetch -> Hash.Set.t

hashes f are f's object hashes.

val pp_fetch : fetch Fmt.t

pp_fetch is the pretty-printer for fetch values.

type ok_or_error = [
  1. | `Ok
  2. | `Error of string
]
type push = {
  1. result : ok_or_error;
  2. commands : (Reference.t * ok_or_error) list;
}

The result of a push operation.

val pp_push : push Fmt.t

pp_push is the pretty-printer for push values.

OCaml

Innovation. Community. Security.