Branch compare diff visualization does not visualize line changes anymore
Summary
The branch compare view in gitlab.com does not correctly visualize diffs anymore. The merge request diff visualization still renders correctly.
Steps to reproduce
- Create a new branch with some changes on it
- In the web UI, navigate to Repository > Branches
- Click the 'Compare' button for the created branch
- Look at the diff
Example Project
Here's a link to a merge request diff view with proper line coloring: MaplessAI/external/timing_statistics!1 (diffs)
Here's a link to a branch compare view missing line coloring: https://gitlab.com/MaplessAI/external/timing_statistics/-/compare/master...compare-view-bug-example?from_project_id=22514667&straight=false
What is the current bug behavior?
The diff visualization when doing branch compare does not properly color changed lines. It does not seems to color them at all, in fact. It appears as though only partial changes within a line are highlighted. Lines as a whole, whether edited, added, or removed, are no longer colored.
What is the expected correct behavior?
The branch compare diff visualization should render exactly the same as the merge request diff visualization.
Relevant logs and/or screenshots
Properly rendered merge request diff (linked in Example Project section):
Bad branch diff visualization of exactly the same changes (linked in Example Project section):
Output of checks
N/A
Results of GitLab environment info
N/A
Results of GitLab application Check
N/A
Possible fixes
Use the same diff visualization pipeline for merge requests and branch compares.