package current_git

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

Integration with Git.

module Commit_id : sig ... end
module Commit : sig ... end
val clone : schedule:Current_cache.Schedule.t -> ?gref:string -> string -> Commit.t Current.t

clone ~schedule ~gref uri evaluates to the head commit of uri's gref branch (default: "master").

val with_checkout : job:Current.Job.t -> Commit.t -> (Fpath.t -> 'a Current.or_error Lwt.t) -> 'a Current.or_error Lwt.t

with_checkout ~job c fn clones c to a temporary directory and runs fn tmpdir. When it returns, the directory is deleted.

module Local : sig ... end
OCaml

Innovation. Community. Security.