Page MenuHomePhabricator

Gerrit word diff is really bad at matching
Closed, DeclinedPublic

Description

image.png (1×2 px, 406 KB)

In the screenshot, in the first block, the line that is identical except one level of indentation is shown as text coming from two different lines on the left side.

The second block is okay.

In the third block ); mysteriously is taken as added text.

git --word-diff=color does not have this issue.

Screenshot from https://gerrit.wikimedia.org/r/#/c/394917/1/api/ApiQueryContentTranslationSuggestions.php

Event Timeline

Upstream removed GWTUI (the old ui). I propose to decline this (or does it do the same in the new ui too?)

Please create a new task for the new ui if you have the same problem.