package git

  1. Overview
  2. Docs

Packed references.

type entry = [
  1. | `Newline
  2. | `Comment of string
  3. | `Entry of Hash.t * Reference.t
]

The type for packed reference entries.

include S with type t = entry list
type t = entry list

The type for the given Git object.

val equal : t -> t -> bool

Are two objects equal?

val hash : t -> int

Hash an object.

val compare : t -> t -> int

Compare two objects.

val pp : t Fmt.t

pp is the pretty-printer for values of type t.

val find : t -> Reference.t -> Hash.t option

find t r is r's hash in t.

val references : t -> Reference.t list

references t is the list of t's references.

module IO (D : Hash.DIGEST) : IO with type t = t
OCaml

Innovation. Community. Security.