Skip to main content

write_paths_patch

Function write_paths_patch 

Source
pub fn write_paths_patch<W: Write>(
    a: &Path,
    b: &Path,
    opts: &DiffOptions,
    out: &mut W,
) -> Result<bool, NoIndexError>
Expand description

Write git diff --no-index --binary-style patch bytes for two filesystem paths.

Returns Ok(true) when the paths differ.

ยงErrors

Propagates NoIndexError and repository/patch I/O failures.