package git-unix

  1. Overview
  2. Docs
Virtual package to install and configure ocaml-git's Unix backend

Install

Dune Dependency

Authors

Maintainers

Sources

git-3.14.0.tbz
sha256=bb536af33a3661f02745789bf88a98574b16386adaab1ac90b7dcd74341a62c1
sha512=4c58388a72a603f3302a667b2dc6f3eea4ba90a988d873f6b2a13110bc19a4c697e4180d7bbc0a3e5a1e18fcfbc36a883542b4ffd0ffa15dbe2070ad35494d79

doc/git-unix/Git_unix/Store/Value/index.html

Module Store.ValueSource

Sourcetype hash = hash
Sourcetype nonrec t = hash Git.Value.t

OCaml value which represents a Git object.

Sourcemodule Blob : Git.Blob.S with type hash = hash
Sourcemodule Commit : Git.Commit.S with type hash = hash
Sourcemodule Tree : Git.Tree.S with type hash = hash
Sourcemodule Tag : Git.Tag.S with type hash = hash
Sourceval blob : Blob.t -> t
Sourceval commit : Commit.t -> t
Sourceval tree : Tree.t -> t
Sourceval tag : Tag.t -> t
Sourceval kind : t -> [ `Commit | `Blob | `Tree | `Tag ]

kind o returns the kind of the Git object.

Sourceval format : t Encore.t
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
Sourceval length_with_header : t -> int64

length_with_header t is length t plus the length of the header.

Sourceval to_raw : t -> string
Sourceval to_raw_without_header : t -> string
Sourceval of_raw_with_header : ?off:int -> ?len:int -> string -> (t, [> `Msg of string ]) result
Sourceval of_raw : kind:[ `Commit | `Blob | `Tree | `Tag ] -> Cstruct.t -> (t, [> `Msg of string ]) result
Sourceval stream : t -> unit -> string option Lwt.t
OCaml

Innovation. Community. Security.