Module Vcs_git_unix

Implementation of a git backend for the Vcs library, based on Stdlib and Vcs_git_backend.

This implementation is based on the git command line tool. We run it as an external program with utils from Stdlib and Unix, producing the right command line invocation and parsing the output to produce a typed version of the expected results with Vcs_git_backend. Note that git must be found in the PATH of the running environment.

This is a convenient type alias that may be used to designate a backend with the exact list of traits supported by this implementation.

val create : unit -> t

When create is called, the environment variable "PATH" is read to resolve the executable whose basename is "git". Subsequent calls to that vcs value will execute that resolved path, unless a "PATH" variable is passed as an override to a call in particular, via the env variable of Vcs.git ?env).

module Impl : Vcs_git_backend.S with type t = Runtime.t

The implementation of the backend is exported for convenience and tests. Casual users should prefer using Vcs directly.

Runtime

Exposed if you need to extend it.

module Runtime : sig ... end