Vcs.Or_error
An Vcs
API based on Base.Or_error
.
val sexp_of_err : err -> Sexplib0.Sexp.t
val sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.t
The individual functions are documented the Vcs
module.
include Volgo.Vcs.Non_raising.S
with type 'a t := 'a Volgo.Vcs.t
and type 'a result := 'a t
val init :
< Volgo__.Trait.init.. > Volgo.Vcs.t ->
path:Fpath_sexp0.Absolute_path.t ->
Volgo__.Repo_root.t t
val find_enclosing_git_repo_root :
< Volgo__.Trait.file_system.. > Volgo.Vcs.t ->
from:Fpath_sexp0.Absolute_path.t ->
Volgo__.Repo_root.t option t
val find_enclosing_repo_root :
< Volgo__.Trait.file_system.. > Volgo.Vcs.t ->
from:Fpath_sexp0.Absolute_path.t ->
store:(Fpath_sexp0.Fsegment.t * 'store) list ->
('store * Volgo__.Repo_root.t) option t
val add :
< Volgo__.Trait.add.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
path:Volgo.Vcs.Path_in_repo.t ->
unit t
val commit :
< Volgo__.Trait.rev_parse ; Volgo__.Trait.commit.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
commit_message:Volgo__.Commit_message.t ->
Volgo.Vcs.Rev.t t
val current_branch :
< Volgo__.Trait.rev_parse.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
Volgo.Vcs.Branch_name.t t
val current_revision :
< Volgo__.Trait.rev_parse.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
Volgo.Vcs.Rev.t t
val ls_files :
< Volgo__.Trait.ls_files.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
below:Volgo.Vcs.Path_in_repo.t ->
Volgo.Vcs.Path_in_repo.t list t
val show_file_at_rev :
< Volgo__.Trait.show.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
rev:Volgo.Vcs.Rev.t ->
path:Volgo.Vcs.Path_in_repo.t ->
[ `Present of string | `Absent ] t
val load_file :
< Volgo__.Trait.file_system.. > Volgo.Vcs.t ->
path:Fpath_sexp0.Absolute_path.t ->
string t
val save_file :
?perms:int ->
< Volgo__.Trait.file_system.. > Volgo.Vcs.t ->
path:Fpath_sexp0.Absolute_path.t ->
file_contents:string ->
unit t
val read_dir :
< Volgo__.Trait.file_system.. > Volgo.Vcs.t ->
dir:Fpath_sexp0.Absolute_path.t ->
Fpath_sexp0.Fsegment.t list t
val rename_current_branch :
< Volgo__.Trait.branch.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
to_:Volgo.Vcs.Branch_name.t ->
unit t
val name_status :
< Volgo__.Trait.name_status.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
changed:Volgo__.Name_status.Changed.t ->
Volgo__.Name_status.Change.t list t
val num_status :
< Volgo__.Trait.num_status.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
changed:Volgo__.Name_status.Changed.t ->
Volgo__.Num_status.Change.t list t
val log :
< Volgo__.Trait.log.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
Log.Line.t list t
val refs :
< Volgo__.Trait.refs.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
Volgo.Vcs.Refs.Line.t list t
val graph :
< Volgo__.Trait.log ; Volgo__.Trait.refs.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
Volgo__.Graph.t t
val set_user_name :
< Volgo__.Trait.config.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
user_name:Volgo__.User_name.t ->
unit t
val set_user_email :
< Volgo__.Trait.config.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
user_email:Volgo__.User_email.t ->
unit t
val git :
?env:string array ->
?run_in_subdir:Volgo.Vcs.Path_in_repo.t ->
< Volgo__.Trait.git.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
args:string list ->
f:(Volgo__.Git.Output.t -> 'a t) ->
'a t
val hg :
?env:string array ->
?run_in_subdir:Volgo.Vcs.Path_in_repo.t ->
< Volgo__.Trait.hg.. > Volgo.Vcs.t ->
repo_root:Volgo__.Repo_root.t ->
args:string list ->
f:(Volgo__.Hg.Output.t -> 'a t) ->
'a t