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
F18906932: D19482.id.diff
Sat, Nov 8, 9:19 PM
F18894104: D19482.diff
Fri, Nov 7, 1:37 PM
F18842654: D19482.id46596.diff
Tue, Oct 28, 5:24 PM
F18840976: D19482.id.diff
Tue, Oct 28, 5:36 AM
F18767547: D19482.id.diff
Oct 7 2025, 11:09 PM
F18761318: D19482.diff
Oct 6 2025, 1:39 PM
F18643687: D19482.diff
Sep 19 2025, 3:01 AM
F18630436: D19482.diff
Sep 16 2025, 11:40 AM
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