Skip to content

Display empty files properly on MR diffs

What does this MR do?

Adds an "Empty file" message to empty files in the updated merge request diff UI.

gitlab-ce-mr-empty-file-fix

I could not see a path to support this feature without adding an addition field to Gitlab::Diff::File. This is my first time working with the GitLab source and I'd love to hear any suggestions for improvements!

What are the relevant issue numbers?

Closes #54786 (closed)

Does this MR meet the acceptance criteria?

Edited by Sean Nichols

Merge request reports