Fix the collapsed diff when converting a symlink to a regular file
What does this MR do?
This MR fixes a bug that occurred when a symlink was converted to a regular file. An incorrect diff was rendered after expanding a collapsed diff. Please see https://gitlab.com/gitlab-org/gitlab-ce/issues/21610#note_14729605
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together