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 nodestree_streamer2
- second stream of nodesno_content
- don’t check for different file contentsfile_identical
- function to check if the content of two files is identicalmetadata
- show differences in metadata