Skip to main content

Module diff

Module diff 

Source
Expand description

Two-level Merkle diff for incremental change detection.

Level 1: Compare directory mtimes — skip entire subtrees if unchanged. Level 2: For changed directories, stat files and blake3-hash dirty ones.

Structs§

DiffResult
Result of diffing the filesystem against a manifest.

Functions§

compute_diff
Compare the filesystem at root against the manifest to find changes.
compute_diff_with_options
Compare the filesystem at root against the manifest with explicit walk filters. Excluded files are treated like deleted manifest entries so stale cached chunks are pruned from the index.
hash_file
Compute the blake3 hash of a file’s content.
mtime_secs
Get the mtime of a path in seconds since epoch.