Vcs.RresultAn Vcs API in the style of Rresult.
val sexp_of_err : err -> Sexplib0.Sexp.ttype 'a t = ('a, err) Stdlib.Result.tval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.ttype 'a result = 'a tThis part exposes the functions prescribed by the Rresult usage design guidelines.
val open_error :
'a result ->
('a, [> `Vcs of Pplumbing_err.Err.t ]) Stdlib.Result.tval error_to_msg : 'a result -> ('a, [ `Msg of string ]) Stdlib.Result.tThe individual functions are documented the Vcs module.
val init :
< Volgo__.Trait.init.. > Volgo__.Vcs0.t ->
path:Fpath_sexp0.Absolute_path.t ->
Volgo__.Repo_root.t resultval find_enclosing_git_repo_root :
< Volgo__.Trait.file_system.. > Volgo__.Vcs0.t ->
from:Fpath_sexp0.Absolute_path.t ->
Volgo__.Repo_root.t option resultval find_enclosing_repo_root :
< Volgo__.Trait.file_system.. > Volgo__.Vcs0.t ->
from:Fpath_sexp0.Absolute_path.t ->
store:(Fpath_sexp0.Fsegment.t * 'store) list ->
('store * Volgo__.Repo_root.t) option resultval add :
< Volgo__.Trait.add.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
path:Path_in_repo.t ->
unit resultval current_branch :
< Volgo__.Trait.current_branch.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
Branch_name.t resultval current_branch_opt :
< Volgo__.Trait.current_branch.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
Branch_name.t option resultval ls_files :
< Volgo__.Trait.ls_files.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
below:Path_in_repo.t ->
Path_in_repo.t list resultval show_file_at_rev :
< Volgo__.Trait.show.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
rev:Rev.t ->
path:Path_in_repo.t ->
[ `Present of string | `Absent ] resultval load_file :
< Volgo__.Trait.file_system.. > Volgo__.Vcs0.t ->
path:Fpath_sexp0.Absolute_path.t ->
string resultval save_file :
?perms:int ->
< Volgo__.Trait.file_system.. > Volgo__.Vcs0.t ->
path:Fpath_sexp0.Absolute_path.t ->
file_contents:string ->
unit resultval read_dir :
< Volgo__.Trait.file_system.. > Volgo__.Vcs0.t ->
dir:Fpath_sexp0.Absolute_path.t ->
Fpath_sexp0.Fsegment.t list resultval rename_current_branch :
< Volgo__.Trait.branch.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
to_:Branch_name.t ->
unit resultval name_status :
< Volgo__.Trait.name_status.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
changed:Volgo__.Name_status.Changed.t ->
Volgo__.Name_status.Change.t list resultval num_status :
< Volgo__.Trait.num_status.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
changed:Volgo__.Name_status.Changed.t ->
Volgo__.Num_status.Change.t list resultval log :
< Volgo__.Trait.log.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
Log.Line.t list resultval refs :
< Volgo__.Trait.refs.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
Refs.Line.t list resultval graph :
< Volgo__.Trait.log ; Volgo__.Trait.refs.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
Volgo__.Graph.t resultval set_user_name :
< Volgo__.Trait.config.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
user_name:Volgo__.User_name.t ->
unit resultval set_user_email :
< Volgo__.Trait.config.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
user_email:Volgo__.User_email.t ->
unit resultval git :
?env:string array ->
?run_in_subdir:Path_in_repo.t ->
< Volgo__.Trait.git.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
args:string list ->
f:(Volgo__.Git.Output.t -> 'a result) ->
'a resultval hg :
?env:string array ->
?run_in_subdir:Path_in_repo.t ->
< Volgo__.Trait.hg.. > Volgo__.Vcs0.t ->
repo_root:Volgo__.Repo_root.t ->
args:string list ->
f:(Volgo__.Hg.Output.t -> 'a result) ->
'a result