Skip to main content

Module patch

Module patch 

Source
Expand description

Bounded, line-spanned patch application into an isolated workspace copy.

A patch is one contiguous line range in one file, replaced verbatim. The application is deliberately strict: it refuses paths that escape the workspace root and spans that fall outside the target file. Multi-file application is gated behind an explicit flag so the default stays one span in one file, matching the single-span tasks the miner emits.

Structs§

AppliedPatch
Audit record of one applied span.
SpanReplacement
One contiguous, line-bounded replacement in a single file.

Functions§

apply_edits
Apply a set of edits inside root.
apply_single_span
Apply one span replacement inside root.