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)
Apr 30 2025, 1:18 AM
Unknown Object (File)
Apr 24 2025, 2:08 AM
Unknown Object (File)
Apr 22 2025, 7:36 AM
Unknown Object (File)
Apr 22 2025, 2:33 AM
Unknown Object (File)
Apr 21 2025, 7:28 AM
Unknown Object (File)
Mar 28 2025, 9:00 AM
Unknown Object (File)
Mar 26 2025, 5:56 PM
Unknown Object (File)
Mar 21 2025, 12:42 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