Module type OpamVCS.VCS

module type VCS = sig .. end
Each backend should implement this signature.

val exists : OpamTypes.repository -> bool
Test whether the given repository is correctly initialized.
val init : OpamTypes.repository -> unit
Init a repository.
val fetch : OpamTypes.repository -> unit
Fetch changes from upstream. This is supposed to put the changes in a staging area.
val reset : OpamTypes.repository -> unit
Reset the master branch of the repository to match the remote repository state.
val diff : OpamTypes.repository -> bool
Check whether the staging area is empty.
val revision : OpamTypes.repository -> string
Return the HEAD revision.