Skip to main content

write_git_binary_patch

Function write_git_binary_patch 

Source
pub fn write_git_binary_patch(
    old: &[u8],
    new: &[u8],
    _old_path: &str,
    _new_path: &str,
) -> Result<String>
Expand description

Emit a unified diff whose body is a GIT binary patch with zlib+base85 literals.

Forward literal is new; reverse literal is old, matching Git’s git diff --binary.