Allow admins to increase the diff patch size beyond 500K

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

When attempting to configure diff limits, Gitlab will complain that Diff max patch bytes must be less than or equal to 512000.

500K, quite frankly, seems ridiculous. I can understand wanting to limit diffs on the Hosted version, but on the Self Hosted versions this should be left to the discretion of the admins.

Having such a low limit makes it impossible to use Gitlab to review merge requests. It's fine for large merge requests to have all diffs collapsed, or to only have the one-file-at-a-time view enabled. But not being able to view it all significantly reduces gitlab's value proposition.

Edited Aug 27, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading