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
F17948852: D19482.id.diff
Thu, Jul 31, 10:07 PM
F17926915: D19482.diff
Wed, Jul 30, 1:50 PM
F17829657: D19482.id.diff
Jul 26 2025, 10:15 AM
Unknown Object (File)
Jul 2 2025, 1:37 AM
Unknown Object (File)
Jun 18 2025, 9:53 PM
Unknown Object (File)
May 27 2025, 9:46 PM
Unknown Object (File)
May 26 2025, 1:19 PM
Unknown Object (File)
May 4 2025, 8:35 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