package git-unix

  1. Overview
  2. Docs

Parameters

module Store : Git.S
module FS : Git.FS
module Entry : ENTRY with type hash := Store.Hash.t

Signature

module StringMap : Map.S with type key = string
type 'entry elt =
  1. | Blob of 'entry
  2. | Tree of 'entry elt StringMap.t
and 'entry t =
  1. | Root of 'entry elt StringMap.t
val of_entries : Entry.entry list -> Entry.entry t
val to_entries : to_entry:(Git.Path.t -> 'a -> 'b) -> 'a t -> 'b list
type error
val pp_error : error Fmt.t
type file = [
  1. | `Everybody
  2. | `Exec
  3. | `Normal
]
type directory = [
  1. | `Dir
]
val int_of_perm : file -> int
val entry_of_stats : Store.Hash.t -> Git.Path.t -> ?gitlink:bool -> Unix.stats -> Entry.entry
val write_blob_entry : Store.t -> FS.t -> Git.Path.t -> Entry.entry -> (Entry.entry, error) result Lwt.t
val write_tree : root:Fpath.t -> FS.t -> Git.Path.t -> (unit, error) result Lwt.t
val load_entries : Store.t -> FS.t -> dtmp:Cstruct.t -> (Entry.entry list, error) result Lwt.t
val store_entries : Store.t -> FS.t -> dtmp:Cstruct.t -> Entry.entry list -> (unit, error) result Lwt.t
module Write : sig ... end
module Read : sig ... end
module Snapshot : sig ... end
OCaml

Innovation. Community. Security.