package git-unix

  1. Overview
  2. Docs

Module Git_indexSource

Sourcetype _ hash =
  1. | SHA1 : Digestif.SHA1.t hash
Sourcemodule Entry : sig ... end
Sourcetype 'oid t
Sourceval exists : 'oid t -> Fpath.t -> bool
Sourceval find : 'oid t -> Fpath.t -> 'oid Entry.t option
Sourceval replace : 'oid t -> 'oid Entry.t -> unit
Sourceval add : hash:'oid hash -> Fpath.t -> 'oid t -> (unit, [> Rresult.R.msg ]) result
Sourceval rem : Fpath.t -> 'oid t -> unit
Sourceval make : ?version:int -> 'oid hash -> 'oid t
Sourceval load : hash:'oid hash -> Fpath.t -> ('oid t, [> Rresult.R.msg ]) result
Sourceval store : hash:'oid hash -> append:('fd -> Bigstringaf.t -> 'fd) -> 'fd -> 'oid t -> 'fd
Sourceval store_to_path : hash:'oid hash -> Fpath.t -> 'oid t -> (unit, [> Rresult.R.msg ]) result
Sourcetype 'oid elt = [
  1. | `Tree of Fpath.t
  2. | `Blob of 'oid Entry.t
]
Sourceval fold : f: ([ 'oid elt | `Root ] -> 'oid elt list -> 'a -> ('a, [> Rresult.R.msg ] as 'err) result Lwt.t) -> 'a -> 'oid t -> ('a, 'err) result Lwt.t
OCaml

Innovation. Community. Security.