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§
- Apply
Hunks Options - Apply
Hunks Result - Conflict
Range - Hunk
- Merge
Error - Merge
Result - Patch
Apply File Result - Patch
File
Enums§
Functions§
- apply_
hunks - apply_
hunks_ with_ options - copy_
dest_ exists_ msg - Error message when a git copy dest already exists.
- create_
dest_ exists_ msg - Error message when a patch-create dest already exists.
- merge_
hunks - parse_
diff_ file_ path - Parse one unified-diff path token (
+++ b/foo,rename to "\\056env"). - parse_
diff_ git_ paths - Parse
diff --git a/old b/newinto (old, new) relative paths. - parse_
patch - patch_
declared_ paths - Dest and source paths a unified diff would touch (C-unescaped).
- rename_
dest_ exists_ msg - Error message when
rename_would_clobber_destis 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.renamewithout force). - unquote_
git_ c_ string - Git C-string unescape for a quoted path body (no surrounding quotes).
- unsupported_
git_ meta_ msg - Apply-refuse message for a dest listed from git-meta that we do not write.