package datakit-github

  1. Overview
  2. Docs
type t = private {
  1. repo : Repo.t;
  2. hash : string;

The type for commits.

val v : Repo.t -> string -> t

v repo id builds a fresh t with repo and id.

val pp : t Fmt.t

pp is the pretty-printer for commits.

val pp_hash : string Fmt.t

pp_hash is the pretty-printer for commit hashes which just show the first 8 characters of the hash.

val compare : t -> t -> int

compare compares commits.

val repo : t -> Repo.t

repo t is t's repository.

val hash : t -> string

hash t is t's SHA1.

val equal : t -> t -> bool

equal is the equality functions for commits.

module Set : sig ... end

Sets of commits.


Innovation. Community. Security.