Expand description
Git index REUC (resolve-undo) extension — records unmerged stages when a conflict is resolved.
Format matches Git’s resolve-undo.c: for each path, NUL-terminated name, three octal modes with
NUL terminators, then raw SHA-1s for non-zero modes.
Structs§
- Resolve
Undo Record - Per-path undo data: up to three conflict stages (index 0 = stage 1).
Functions§
- parse_
resolve_ undo_ payload - Parse the
REUCextension payload into a path → record map. - record_
resolve_ undo_ for_ entry - Merge one unmerged index entry into the resolve-undo map for its path.
- write_
resolve_ undo_ payload - Serialise resolve-undo records to the
REUCextension body (sorted by path).