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
Unknown Object (File)
Thu, Apr 25, 1:05 AM
Unknown Object (File)
Tue, Apr 23, 6:39 PM
Unknown Object (File)
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)
Mar 27 2024, 12:41 PM
Unknown Object (File)
Mar 10 2024, 2:50 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
Branch
newline1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24819
Build 34241: Run Core Tests
Build 34240: arc lint + arc unit