Page MenuHomePhabricator

In 1-up source diffs, retain the "No newline at end of file" on "\" lines
ClosedPublic

Authored by epriestley on Aug 5 2020, 4:49 PM.
Tags
None
Referenced Files
F13048255: D21433.id51002.diff
Thu, Apr 18, 6:00 PM
Unknown Object (File)
Thu, Apr 11, 8:46 AM
Unknown Object (File)
Sun, Apr 7, 9:58 PM
Unknown Object (File)
Thu, Mar 28, 5:52 PM
Unknown Object (File)
Wed, Mar 27, 12:41 PM
Unknown Object (File)
Mar 10 2024, 2:50 AM
Unknown Object (File)
Feb 20 2024, 8:10 PM
Unknown Object (File)
Jan 23 2024, 9:24 AM
Subscribers
None

Details

Summary

See PHI1839. Currently, the "No newline at end of file" text is dropped in the 1-up diff view for changes that affect a file with no trailing newline.

Track it through the construction of diff primitivies more carefully.

Test Plan

Screen Shot 2020-08-05 at 9.43.24 AM.png (549×327 px, 35 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable