package current_git

  1. Overview
  2. Docs

Module Current_git.LocalSource

Sourcetype t

A local Git repository.

Sourceval v : Fpath.t -> t

v path is the local Git repository at path.

Sourceval head : t -> [ `Commit of Commit_id.t | `Ref of string ] Current.t

head is the current branch ref (e.g. "/refs/heads/master").

Sourceval head_commit : t -> Commit.t Current.t

head_commit is the commit at the head of the current branch.

Sourceval commit_of_ref : t -> string -> Commit.t Current.t

commit_of_ref t gref evaluates to the commit at the head of gref. e.g. commit_of_ref t "/refs/heads/master"

Sourceval repo : t -> Fpath.t
OCaml

Innovation. Community. Security.