package volgo-git-unix
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=b34a73addb7bbcad6ae8276903fb5ca5b7c7d810c911931e770eaff229bb3140
sha512=1dacbd771bdd8e43ddfd901f70e803b77b48f811f3b50a90e1aafadfa6be874b5b75049b9185cb07f1555dd1d1aa67d0fe1e16ef3c7c32ba6be47d058e597e80
doc/volgo-git-unix/Volgo_git_unix/index.html
Module Volgo_git_unix
Source
Implementation of a Git backend for the Volgo.Vcs
library, based on Stdlib
and Volgo_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 Volgo_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.
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
).
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.
This module implements the handling of running the git and hg processes in a blocking fashion.