Skip to main content

apply

Function apply 

Source
pub fn apply(
    diff_buf: &[u8],
    files: &HashMap<String, String>,
) -> Result<HashMap<String, String>, DiffError>
Expand description

Apply a diff to in-memory text files. Validates everything first and fails without touching anything on any error. Files the diff does not name pass through unchanged.