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 keys : t -> Hash.Set.t

Read only the keys contained in the index.

val find_offset : t -> Hash.t -> int option

Same as find_offset but for raw packs.

val lengths : t -> int option Hash.Map.t

lengths returns the difference between two consecutive offsets (appart for the last elements, where the lenght can be None is the index file is build from a raw pack file).


Innovation. Community. Security.