Diff limits administration
- Tier: Free, Premium, Ultimate
- Offering: Self-managed
You can set a maximum size for display of diff files (patches).
For details about diff files, view changes between files. Read more about the built-in limits for merge requests and diffs.
Configure diff limits
These settings are experimental. An increased maximum increases resource consumption of your instance. Keep this in mind when adjusting the maximum.
To speed the loading time of merge request views and branch comparison views on your instance, you can configure three instance-level maximum values for diffs:
Value | Definition | Default value | Maximum value |
---|---|---|---|
Maximum diff patch size | The total size, in bytes, of the entire diff. | 200 KB | 500 KB |
Maximum diff files | The total number of files changed in a diff. | 1000 | 3000 |
Maximum diff lines | The total number of lines changed in a diff. | 50,000 | 100,000 |
When a diff reaches 10% of any of these values, the files are shown in a collapsed view, with a link to expand the diff. Diffs that exceed any of the set values are presented as Too large are cannot be expanded in the UI.
To configure these values:
- On the left sidebar, at the bottom, select Admin.
- Select Settings > General.
- Expand Diff limits.
- Enter a value for the diff limit.
- Select Save changes.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support