Skip to content

File mode changes are not always visible in the merge request diff view

Bero requested to merge hypemc/gitlab:file-mode-changes-in-mr-fix into master

What does this MR do and why?

File mode changes to a file are not visible in the merge request diff view if there are changes to the contents of the file as well or if the file was renamed.

However, if the only changes are to the file mode, then everything works as expected.

Closes #208556 (closed)

Screenshots or screen recordings

Before

image

After

image

How to set up and validate locally

  1. Open a MR that changes the mode of a certain file & either updates its content or renames it
  2. Go to the diff view of the MR
  3. The file mode changes should be visible in the header of the file

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports