Side-by-side diff displays added lines as removed lines
Created by: jameshfisher
I have a merge request on our instance of GitLab for which one hunk of the diff looks like:
-<div class="container" role="main" id="page" ng-view> </div>
+<div class="container -form" role="main" id="page" ng-view> </div>
This displays correctly in the "Inline Diff" viewer. However, in the "Side-by-side Diff" viewer, this displays like so.
Left-hand-side; i.e. removed lines:
<div class="container -form" role="main" id="page" ng-view> </div>
Right-hand-side; i.e. added lines:
<div class="container -form" role="main" id="page" ng-view> </div>
Notice that the left-hand-side is incorrect! It is displaying the added line as a removed line.
A separate hunk in this change is:
-images_dir = "images"
-javascripts_dir = "javascripts"
+images_dir = "static/img"
+javascripts_dir = "target/static/js"
+cache_path = "target/.tmp/.sass-cache"
but this displays in "Side-by-side Diff" view as:
Left-hand-side:
images_dir = "static/img"
javascripts_dir = "target/static/js"
Right-hand-side:
images_dir = "static/img"
javascripts_dir = "target/static/js"
cache_path = "target/.tmp/.sass-cache"
Again, notice that the left-hand-side is incorrect: those lines are added lines, not removed lines.
We are running GitLab commit de9bf7d
.