package git

  1. Overview
  2. Docs

Commits.

type t = {
  1. tree : Hash.Tree.t;
  2. parents : Hash.Commit.t list;
  3. author : User.t;
  4. committer : User.t;
  5. message : string;
}

A commit is a tree snapshot, with some credentials (eg. we can find who created the initial snapshot, and who added it to to store) and a message explaining what the snapshot contains.

include S with type t := t
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.

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

Innovation. Community. Security.