Skip to main content

parse_apply_patch_input

Function parse_apply_patch_input 

Source
pub fn parse_apply_patch_input(
    arguments: &str,
) -> Option<(String, Vec<DiffHunk>)>
Expand description

Parse a V4A patch envelope from an apply_patch arguments JSON.

Returns (path, hunks) for the first *** Update File: / *** Add File: block found, or None if the input is not parseable as a V4A patch.