Adding empty files should display a message in merge request diffs
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Work on this issue](https://contributors.gitlab.com/manage-issue?action=work&projectId=278964&issueIid=22946) - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=22946) </details> <!--IssueSummary end--> ### Summary If an empty file is added, the merge request only displays the file header. ### Steps to reproduce - create an empty file - create a merge request ### What is the current behavior? only file header is displayed: ![Screen_Shot_2018-06-25_at_12.01.03](/uploads/3c7d55b3583c33e22515e21284148d3b/Screen_Shot_2018-06-25_at_12.01.03.png) ### What is the improved behavior? A message "File is empty" is shown below the header. This is similar to how "Contains only whitespace changes" is handled. ![CleanShot_2025-10-02_at_12.42.58](/uploads/6e2c2a34cc5dc2ae0bc6b7734174863a/CleanShot_2025-10-02_at_12.42.58.png)
issue