Skip to main content

diffcore_count_changes

Function diffcore_count_changes 

Source
pub fn diffcore_count_changes(old: &[u8], new: &[u8]) -> (u64, u64)
Expand description

Approximate copied vs added material between two blobs (Git diffcore_count_changes).

Returns (copied_bytes_from_src, literal_added_bytes_in_dst) matching Git’s diffcore_count_changes semantics (used for --dirstat=changes damage).