gitlab-org--gitlab-foss/doc/user/admin_area/diff_limits.md

41 lines
1.5 KiB
Markdown
Raw Normal View History

2019-05-30 02:49:38 -04:00
---
type: reference
---
# Diff limits administration
2019-05-30 02:49:38 -04:00
You can set a maximum size for display of diff files (patches).
## Maximum diff patch size
Diff files which exceed this value will be presented as 'too large' and won't
be expandable. Instead of an expandable view, a link to the blob view will be
shown.
Patches greater than 10% of this size will be automatically collapsed, and a
link to expand the diff will be presented.
NOTE: **Note:**
Merge requests and branch comparison views will be affected.
CAUTION: **Caution:**
2019-05-30 02:49:38 -04:00
This setting is experimental. An increased maximum will increase resource
consumption of your instance. Keep this in mind when adjusting the maximum.
2019-05-30 02:49:38 -04:00
1. Go to **Admin area > Settings > General**.
1. Expand **Diff limits**.
1. Enter a value for **Maximum diff patch size**, measured in bytes.
1. Click on **Save changes**.
2019-05-30 02:49:38 -04:00
<!-- ## Troubleshooting
2019-05-30 02:49:38 -04:00
Include any troubleshooting steps that you can foresee. If you know beforehand what issues
one might have when setting this up, or when something is changed, or on upgrading, it's
important to describe those, too. Think of things that may go wrong and include them here.
This is important to minimize requests for support, and to avoid doc comments with
questions that you know someone might ask.
2019-05-30 02:49:38 -04:00
Each scenario can be a third-level heading, e.g. `### Getting error message X`.
If you have none to add when creating a doc, leave this section in place
but commented out to help encourage others to add to it in the future. -->