Skip to main content

compute_edit_file_diff

Function compute_edit_file_diff 

Source
pub fn compute_edit_file_diff(args: &Value) -> Result<String, String>
Expand description

Return a formatted diff string for an edit_file operation without applying it. Lines prefixed “- “ are removals, “+ “ are additions. Returns Err if the search string cannot be located (caller falls through to normal tool dispatch).