Skip to main content

Module rename_view

Module rename_view 

Source
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.
RenamePair
One rename pair from the -M view.

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\0 records.
parse_renames_z
Parse -M -z --name-status output, keeping only R<score> records.