Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitLab Merge Request does not show all changed files

Tags:

merge

gitlab

GitLab MR Image

Gitlab shows 46 changed files but only displays 17 changed files.
This occurs when comparing to source branch and 'latest version'.
Nothing occurs when clicking files in the tree view for some files (only 17 files are clickable).

Why does this occur?

To review all changes, our team has to view each commits individually. In that case, all changed files are shown for that commit.

Is this a bug?

like image 200
javascriptnoob Avatar asked Nov 28 '25 17:11

javascriptnoob


1 Answers

This can happen for a number of reasons:

  1. The file(s) that were change cannot be diffed in the UI (too large, binary, non-diffable type, etc.)
  2. The file(s) are marked in the .gitattributes file on the default branch with an attribute that makes them not show up in diffs (e.g., linguist-generated)
  3. The commits in the MR changed files, but other commits effectively reverted the content back to the original contents, meaning there is no diff to show
  4. There is no change when compared with the target branch (for example, the commits that changed those files are already in the target branch, or the same effective change is in the target branch)
like image 67
sytech Avatar answered Dec 02 '25 04:12

sytech



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!