You can set a maximum size for display of diff files (patches).
For details about diff files, View changes between files.
Diff files which exceed this value are presented as ‘too large’ and cannot be expandable. Instead of an expandable view, a link to the blob view is shown.
Patches greater than 10% of this size are automatically collapsed, and a link to expand the diff is presented. This affects merge requests and branch comparison views.
To set the maximum diff patch size:
- Go to Admin Area > Settings > General.
- Expand Diff limits.
- Enter a value for Maximum diff patch size, measured in bytes.
- Click on Save changes.