[go: up one dir, main page]

Skip to content

Adding empty files should display a message in merge request diffs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

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

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

Edited by Michael Le