Page MenuHomePhabricator

Use more consistent diff coloration in unified diffs
ClosedPublic

Authored by epriestley on Jun 8 2018, 3:04 PM.
Tags
None
Referenced Files
F18767547: D19482.id.diff
Tue, Oct 7, 11:09 PM
F18761318: D19482.diff
Mon, Oct 6, 1:39 PM
F18643687: D19482.diff
Sep 19 2025, 3:01 AM
F18630436: D19482.diff
Sep 16 2025, 11:40 AM
F18509664: D19482.id.diff
Sep 5 2025, 3:32 AM
F18502931: D19482.diff
Sep 4 2025, 10:45 PM
F18371671: D19482.diff
Aug 28 2025, 5:31 AM
F17948852: D19482.id.diff
Jul 31 2025, 10:07 PM
Subscribers
None

Details

Summary

Ref T13151. See PHI701. Unified diffs are currently missing the logic to apply the "old-full" and "new-full" classes, which results in a too-light coloration for fully added or removed lines.

Make this logic consistent with the two-up renderer so we use the same colors in both.

Test Plan

Viewed diffs and swapped between 1-up and 2-up renderers, now saw the same coloration.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable