Module OpamDirTrack
type change=|Added of digest|Removed|Contents_changed of digestFor links, corresponds to a change of target
|Perm_changed of digest|Kind_changed of digestUsed e.g. when a file is replaced by a directory, a link or a fifo
Defines a change concerning a fs item; The
digestparameter is the new value of the item
type t= change OpamStd.String.Map.t
val to_string : t -> stringReturns a printable, multi-line string
val digest_of_string : string -> digestval string_of_digest : digest -> stringval track : OpamFilename.Dir.t -> ?except:OpamFilename.Base.Set.t -> (unit -> 'a OpamProcess.job) -> ('a * t) OpamProcess.jobWraps a job to track the changes that happened under
dirnameduring its execution (changes done by the application of the job function to()are tracked too, for consistency with jobs without commands)
val revert : ?title:string -> ?verbose:bool -> ?force:bool -> ?dryrun:bool -> OpamFilename.Dir.t -> t -> unitRemoves the added and kind-changed items unless their contents changed and
forceisn't set, and prints warnings for other changes unlessverboseis set tofalse. Ignores non-existing files.titleis used to prefix messages if specified.
val check : OpamFilename.Dir.t -> t -> (OpamFilename.t * [ `Unchanged | `Removed | `Changed ]) listChecks the items that were added or kind-changed in the given diff, and returns their status