Expand description
The rename-detected classification view (ADR 0003).
Two inputs, both plumbing:
diff-tree -r -z --raw --full-index --no-renames: authoritative modes, full oids and status per canonical file.diff-tree -r -M -z --name-status: rename pairs with similarity scores.
Both only ANNOTATE the canonical view; they never add or remove entries.
Structs§
- RawRecord
- One record from
--raw -z --full-index --no-renames. - Rename
Pair - One rename pair from the
-Mview.
Functions§
- merge_
raw - Overlay authoritative modes/oids/dispositions onto the parsed canonical view.
- merge_
renames - Annotate both halves of each detected rename in the canonical view.
- parse_
raw_ z - Parse
:100644 100755 <old> <new> M\0path\0records. - parse_
renames_ z - Parse
-M -z --name-statusoutput, keeping onlyR<score>records.