Skip to main content

parse_unified_patch_with_options

Function parse_unified_patch_with_options 

Source
pub fn parse_unified_patch_with_options(
    input: &[u8],
    recount: bool,
    options: &PatchPathOptions,
) -> Result<Vec<FilePatch>>
Expand description

Parse a unified/git diff, applying -p<n> strip and --directory prefix to every resolved pathname exactly as git apply does.