package volgo
Module Vcs.Repo_rootSource
The root of a version control repository that is expected to exists on the local file system.
This is a wrapper around Absolute_path.t to increase type safety.
Given that t = string in the implementation, this function is just the identity.
of_string str returns Ok str if X.invariant str = true, and an error otherwise. This is meant to be used to validate untrusted entries.
v str is a convenient wrapper to build a t or raise Invalid_argument. This is typically handy for applying on trusted literals.
Given an absolute path that is under this repository, returns its relative repo path. This returns None if the supplied absolute path doesn't point to a path within this repository.
This is useful to access file on the file system.