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
F18759774: D21433.id51003.diff
Mon, Oct 6, 5:51 AM
F18745709: D21433.id51002.diff
Fri, Oct 3, 8:52 AM
F18699304: D21433.id51003.diff
Sat, Sep 27, 12:40 PM
F18672451: D21433.id.diff
Thu, Sep 25, 7:34 AM
F18672449: D21433.id51002.diff
Thu, Sep 25, 7:34 AM
F18671180: D21433.diff
Thu, Sep 25, 2:57 AM
F18625779: D21433.diff
Sep 15 2025, 11:31 PM
F18617799: D21433.id51003.diff
Sep 14 2025, 10:12 PM
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