package opam-core
Install
Dune Dependency
Authors
-
David Allsopp
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
KKate Deplaix <kit-ty-kate@outlook.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
md5=3a99d6d8c0394185f168fa0f085f6bb9
sha512=596d7b28f0cf9613dc7637aaeac45cc45f411a13286fea1cc81aeb0630c4f8a6dc2095d50db73229a255a3da3d9a08fe0993355a7fc64d3b16fd712789ff5f6e
doc/opam-core/OpamDirTrack/index.html
Module OpamDirTrack
Source
uniquely identifies a filesystem item value
Defines a change concerning a fs item; The digest
parameter is the new value of the item
Returns a summary of the changes as a printable, single-line string
Return the change
action, with digest if full
is set to true
val track :
OpamFilename.Dir.t ->
?except:OpamFilename.Base.Set.t ->
(unit -> 'a OpamProcess.job) ->
('a * t) OpamProcess.job
Wraps a job to track the changes that happened under dirname
during its execution (changes done by the application of the job function to ()
are tracked too, for consistency with jobs without commands)
val track_files :
prefix:OpamFilename.Dir.t ->
string list ->
?except:OpamFilename.Base.Set.t ->
(unit -> 'a OpamProcess.job) ->
('a * t) OpamProcess.job
track_files prefix paths ?except job
as track
wraps a job to track changes for a predefined list of paths
(files and directories). paths
are relative to prefix
.
val revert :
?title:string ->
?verbose:bool ->
?force:bool ->
?dryrun:bool ->
OpamFilename.Dir.t ->
t ->
unit
Removes the added and kind-changed items unless their contents changed and force
isn't set, and prints warnings for other changes unless verbose
is set to false
. Ignores non-existing files. title
is used to prefix messages if specified.
val check :
OpamFilename.Dir.t ->
t ->
(OpamFilename.t * [ `Unchanged | `Removed | `Changed ]) list
Checks the items that were added or kind-changed in the given diff, and returns their status
Reload all the digests from the directory prefix
. Remove a file from the map if it has been removed from the file-system.