Skip to main content

Module patch

Module patch 

Source
Expand description

Unified-diff parse and apply (git renames, pure renames, hunk fuzz).

size-waiver: single-domain patch parse + apply + pure renames (#2101). Co-located tests push line count. Policy #1408 — do not split for LOC alone.

Structs§

ApplyHunksOptions
ApplyHunksResult
ConflictRange
Hunk
MergeError
MergeResult
PatchApplyFileResult
PatchFile

Enums§

ApplyHunksStatus
OnStale
PatchLine

Functions§

apply_hunks
apply_hunks_with_options
merge_hunks
parse_patch
rename_dest_exists_msg
Error message when rename_would_clobber_dest is true.
rename_would_clobber_dest
True when a git rename would overwrite an existing destination that is not a case-only rename of the source (parity with file.rename without force).