package git-unix

  1. Overview
  2. Docs
type hash = hash
type nonrec t = hash Git__Value.t
module Blob : sig ... end
module Commit : sig ... end
module Tree : sig ... end
module Tag : sig ... end
val blob : Blob.t -> t
val commit : Commit.t -> t
val tree : Tree.t -> t
val tag : Tag.t -> t
val kind : t -> [ `Blob | `Commit | `Tag | `Tree ]
val format : t Encore.t
val digest : t -> hash
val pp : t Fmt.t
val compare : t -> t -> int
val hash : t -> int
val equal : t -> t -> bool
module Set : sig ... end
module Map : sig ... end
val length : t -> int64
val to_raw : t -> string
val to_raw_without_header : t -> string
val of_raw_with_header : ?off:int -> ?len:int -> string -> (t, [> `Msg of string ]) Stdlib.result
val of_raw : kind:[ `Blob | `Commit | `Tag | `Tree ] -> Cstruct.t -> (t, [> `Msg of string ]) Stdlib.result
val stream : t -> unit -> string option Lwt.t
OCaml

Innovation. Community. Security.