OpamDarcs.VCSSourceTest whether the given repository is correctly initialized.
Init a repository.
val fetch :
?cache_dir:OpamTypes.dirname ->
OpamTypes.dirname ->
OpamTypes.url ->
unit OpamProcess.jobFetch changes from upstream. This is supposed to put the changes in a staging area. Be aware that the remote URL might have been changed, so make sure to update accordingly.
Reset the master branch of the repository to match the remote repository state. This might still fetch more data (git submodules...), so is unsuitable for running after validation.
Confirm that applying the patch results in a clean synchronization of the working tree with its repository state.
Returns the pending modifications in the form of a patch file, or None if dirname is up to date with what was last fetched.
Returns true if the last fetched state is equal to the current, on-disk state
Returns an backend-specific identifier for the current revision.
Returns the list of files under version control
Returns the absolute directory name for vc data (e.g. .../project/.git)
Returns the currently selected branch handle. It should be valid as the hash field of OpamUrl.t.
Returns true if the working tree state is different from the state recorded in the VCS as current. This differs from is_up_to_date, which compares specifically to the last fetched state. This should always be false after reset has been called.