Function diff

Source
fn diff(
    tree_streamer1: impl Iterator<Item = RusticResult<(PathBuf, Node)>>,
    tree_streamer2: impl Iterator<Item = RusticResult<(PathBuf, Node)>>,
    no_content: bool,
    file_identical: impl Fn(&Path, &Node, &Node) -> Result<bool>,
    metadata: bool,
) -> Result<()>
Expand description

Compare two streams of nodes and print the differences

§Arguments

  • tree_streamer1 - first stream of nodes
  • tree_streamer2 - second stream of nodes
  • no_content - don’t check for different file contents
  • file_identical - function to check if the content of two files is identical
  • metadata - show differences in metadata

§Errors