pub fn compute_baseline_diff_sign_map(hunks: &HunkIndex) -> DiffSignMapExpand description
D-fix.3b: derive the BASELINE-side DiffSignMap from a HunkIndex.
The mirror of compute_diff_sign_map, walking each hunk’s
baseline-side range (ranges[0]) instead of the current side — so the
baseline (left) pane of a side-by-side diff tints the lines that were
removed / changed relative to the proposed text:
Remove→ every baseline line in the range getsRemove(these are the deleted lines; they DO exist on the baseline side, unlike the current side wherecompute_diff_sign_mapskips them).Change/Conflict→ every baseline line getsChange/Conflict.Add→ no baseline-side line exists (the addition isn’t in the baseline), so it contributes nothing here.
Entries are sorted by line so DiffSignMap::sign_at binary-searches.