Wrong diff highlighting for "no newline at end of file"
Open
bug
- Dominant language
- Rust
- Stars
- 22.5k
- Forks
- 773
- PR merge metrics
- No merged PRs in 30d
Description
When a file without newline at the end is "fixed" by adding a newline, the diff view shows the message "\ No newline at end of file" in green:

This is a bit misleading, it suggests that the change was to remove the newline rather than add it.
For comparison here's how it looks with the default `git diff`:

(tested on gitui 0.26.1)
Contributor guide
Assessment
This issue has not been assessed yet.