gitlab-org--gitlab-foss/doc/user/admin_area/diff_limits.md
Marcel Amirault 38890f3dee Add core badges to admin_area docs
Some admin_area docs were missing the Core Only badge
2019-08-22 16:25:52 +00:00

1.5 KiB

type
reference

Diff limits administration (CORE ONLY)

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: This setting is experimental. An increased maximum will increase resource consumption of your instance. Keep this in mind when adjusting the maximum.

  1. Go to Admin area > Settings > General.
  2. Expand Diff limits.
  3. Enter a value for Maximum diff patch size, measured in bytes.
  4. Click on Save changes.