pub fn diff<T: Write>(old: &[u8], new: &[u8], writer: &mut T) -> Result<()>
Expand description
Diff an “old” and a “new” file, returning a patch.
The patch can be applied to the “old” file to return the new file, with patch::patch()
.
old
and new
correspond to the “old” and “new” file respectively. The patch will be written into writer
.