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.
hash_file
Compute the blake3 hash of a file’s content.
mtime_secs
Get the mtime of a path in seconds since epoch.