FA-75742 / Text diff and three-way merge / Member archive
Blame propagation: every added line is compared with the first removed line · case 02
The second and later reformatted lines are credited to the reformatting commit, and duplicates inherit the wrong commit.
Case contract
Given the old file's per-line commit annotations and an edit script, produce annotations for the new file: context lines keep their old annotation, added lines get the new commit. With ignore_ws, within a run of removed lines followed by added lines, the i-th added line keeps the i-th removed line's annotation when both are equal after deleting all whitespace.
Why this case matters
Blame and annotate views follow each line through history; whitespace-insensitive blame should not credit reformatting commits.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| second pair compared positionally | ["c1", "N2", "c3"] | ["c1", "c2", "c3"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗