Skip to main content

diff_snapshots

Function diff_snapshots 

Source
pub fn diff_snapshots<Old: Read + Seek, New: Read + Seek>(
    out: (impl Write, bool),
    old: &mut Replay<Old>,
    new: &mut Replay<New>,
    byte_format: ByteFormat,
    directories_only: bool,
    prefix: Option<&Path>,
    max_depth: Option<usize>,
    summary_limit: usize,
) -> Result<()>
Expand description

Compare two verified traversal snapshots without materializing either tree.

If directories_only is true, report aggregate directory changes instead of file changes. prefix limits output to that stored path and its descendants. max_depth limits the displayed depth below the selected roots while still reading all entries; collapsed directories show their gross hidden additions and removals. summary_limit bounds each largest-addition and largest-removal list; zero hides both. Changes are streamed before their summary is printed.