Expand description
File comparison utilities.
Structs§
- Diff
Request - Used to signal diff channels to calculate diffs of the requested entity.
Functions§
- diff_
content_ digest - Check whether content digests of files and directories in xvc_path_store has changed.
- diff_
dir_ content_ digest - This is used to detect content changes in elements of path collections, e.g., directories or globs. When the content of these elements change, their content digests also change. We collect them together and calculate their digest to detect changes in the collection.
- diff_
file_ content_ digest - Compare the content of a file with the stored content digest.
- diff_
recheck_ method - For each command, we have a single requested_recheck_method. We build an actual store by repeating it for all entities we have.
- diff_
text_ or_ binary - For each command, we have a single requested_text_or_binary. We build an actual store by repeating it for all entities we have. This is used to find when the user wants to change recheck method.
- diff_
xvc_ path_ metadata - Compare the records and the actual info from
pmm
to find the differences in paths. This is used to detect changes between actual paths and our records. New entities are created for those paths missing from the records. - make_
file_ content_ digest_ diff_ handler - This is a channel version of diff_file_content_digest. It creates a thread that listens to requests diff_request channel and sends the calculated diffs to the diff_result channel.