Skip to main content

git_apply

Function git_apply 

Source
pub fn git_apply(cwd: &Path, patch: &str) -> Result<(), ForemanError>
Expand description

Apply a patch into a worktree. Plain git apply (NOT --3way) on purpose: a false-accept benchmark must surface overlapping/adjacent edits as loud integration conflicts, not silently auto-merge them. A failure here is a textual integration conflict the caller treats as an integration failure.

Public for the same reason as capture_patch: a fleet worker’s patch is replayed into the local worktree through this exact call, so a remote subtask and a local one leave the tree in the same state.