package git

  1. Overview
  2. Docs
include S with type t = raw
type t = raw

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 index : t -> Pack_index.Raw.t

Get the raw index asoociated to the raw pack.

val name : t -> Hash.t

Get the name of the pack.

val keys : t -> Hash.Set.t

Get the keys present in the raw pack.

val buffer : t -> Cstruct.t

Get the pack buffer.

val shallow : t -> bool

shallow t is true if all the Hash references appearing in t corresponds to objects also in t.

val input_header : Mstruct.t -> [ `Version of int ] * [ `Count of int ]

input_head buf reads the pack version number (could be 2 or 3) and the count of packed values in the pack file.

OCaml

Innovation. Community. Security.