Skip to content

Limit commit diffs highlighting [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Igor Drozdov requested to merge id-limit-diff-highlighting into master

What does this MR do?

Feature flag: limited_diff_highlighting

When a huge file changes, its whole content highlighted as plain text anyway: https://gitlab.com/gitlab-org/gitlab/-/issues/300228

When a file is huge, let's just highlight every diff line as plain text without highlighting the whole file. It won't have any visual changes.

Related issue: https://gitlab.com/gitlab-org/gitlab/-/issues/239325

Edited by Igor Drozdov

Merge request reports