We have a diff for a file that is showing as “This diff could not be displayed because it is too large.” in the UI. We found a line limit in the code that says a diff should be limited to 50,000 lines. In our case, the file in the new commit is only 3,100 lines long (the previous version is a similar size). So, it isn’t possible that the diff is over 50,000 lines.
Does anyone know why limit would be imposed in this case? We are running GitLab 8.14.1