apply_git_patch

Function apply_git_patch 

Source
pub fn apply_git_patch(req: &ApplyGitRequest) -> Result<ApplyGitResult>
Expand description

Apply a unified diff to the target repository by shelling out to git apply.

When ApplyGitRequest::preflight is true, this behaves like git apply --check and leaves the working tree untouched while still parsing the command output for diagnostics.