Skip to main content

validate_patch

Function validate_patch 

Source
pub fn validate_patch(original: &str, patch: &FilePatch) -> Vec<PatchConflict>
Expand description

Validate a patch against the original content without applying it.

Returns a list of conflicts — an empty vec means the combo will land cleanly.