Commit 6f357f74 authored by Douwe Maan's avatar Douwe Maan

Merge branch '42314-diff-file' into 'master'

Resolve "Diff file navigation shows renamed files as deleted"

Closes #42314

See merge request gitlab-org/gitlab-ce!17091
parents 9b0f0fd8 2ecac881
...@@ -160,7 +160,7 @@ module DiffHelper ...@@ -160,7 +160,7 @@ module DiffHelper
end end
def diff_file_changed_icon(diff_file) def diff_file_changed_icon(diff_file)
if diff_file.deleted_file? || diff_file.renamed_file? if diff_file.deleted_file?
"file-deletion" "file-deletion"
elsif diff_file.new_file? elsif diff_file.new_file?
"file-addition" "file-addition"
......
---
title: Render modified icon for moved file in changes dropdown
merge_request:
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment