package datakit-github

  1. Overview
  2. Docs
type t
val name : t -> string
val remove : t -> unit or_error Lwt.t
val rename : t -> string -> unit or_error Lwt.t
val head : t -> Commit.t option or_error Lwt.t
val wait_for_head : t -> ?switch:Lwt_switch.t -> (Commit.t option -> [ `Abort | `Again | `Finish of 'a ] or_error Lwt.t) -> [ `Abort | `Finish of 'a ] or_error Lwt.t
val wait_for_path : t -> ?switch:Lwt_switch.t -> Datakit_path.t -> ([ `Dir of Tree.t | `Exec of Cstruct.t | `File of Cstruct.t | `Link of string ] option -> [ `Abort | `Again | `Finish of 'a ] or_error Lwt.t) -> [ `Abort | `Finish of 'a ] or_error Lwt.t
val fast_forward : t -> Commit.t -> unit or_error Lwt.t
val with_transaction : t -> (Transaction.t -> 'a or_error Lwt.t) -> 'a or_error Lwt.t
val transaction : t -> Transaction.t or_error Lwt.t
OCaml

Innovation. Community. Security.