package git

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tag.MakeSource

Functor building an implementation of the tag structure. The functor returns a structure containing a type hash of digests and a type t of tags (structurally equal to t).

Parameters

module Hash : sig ... end

Signature

Sourcetype hash = Hash.t
Sourcetype nonrec t = hash t
Sourceval make : hash -> kind -> ?tagger:User.t -> tag:string -> string option -> t

make hash kind ?tagger ~tag descr makes a new tag with the kind kind by the tagger with the name tag and the description descr.

This function does not check if the reference hash points to an existing kind Git object.

Sourceval format : t Encore.t

format is a description of how to encode/decode of t object.

Sourceval digest : t -> hash

digest t associates a hash to any value of t. It is guaranteed that if x = y or compare x y = 0, then digest x = digest y.

Sourceval pp : t Fmt.t

Pretty-printer of t.

Sourceval compare : t -> t -> int

The comparison function for t.

Sourceval hash : t -> int

hash blob associates a non-negative integer to any value of t. It is guaranteed that if x = y or compare x y = 0, then hash x = hash y.

Sourceval equal : t -> t -> bool

The equal function for t.

Sets and Maps.

Sourcemodule Set : Set.S with type elt = t
Sourcemodule Map : Map.S with type key = t
Sourceval length : t -> int64

length t is the length of the given tag object.

Sourceval obj : t -> hash

obj t returns the reference of the given tag.

Sourceval tag : t -> string

tag t returns the information of the given tag.

Sourceval message : t -> string option
Sourceval kind : t -> kind
Sourceval tagger : t -> User.t option
OCaml

Innovation. Community. Security.