summaryrefslogtreecommitdiff
path: root/lib/gitlab/diff/file.rb
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2016-11-10 18:24:12 +0100
committerAdam Niedzielski <adamsunday@gmail.com>2016-11-10 18:24:12 +0100
commit3fa265d19547669c60788e38e389fa12bb119235 (patch)
treee796b5286824892269c836cb75ce11a479a6472a /lib/gitlab/diff/file.rb
parente3dcd83d4a4b75dc050592ea008dc34ecbe0aa49 (diff)
downloadgitlab-ce-3fa265d19547669c60788e38e389fa12bb119235.tar.gz
Fix expanding a collapsed diff when converting a symlink to a regular fileadam-fix-collapsed-diff-symlink-file-conversion
In this case comparing old_path and new_path is not enough because there are two entires that match.
Diffstat (limited to 'lib/gitlab/diff/file.rb')
-rw-r--r--lib/gitlab/diff/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/diff/file.rb b/lib/gitlab/diff/file.rb
index ce85e5e0123..5110bfbf898 100644
--- a/lib/gitlab/diff/file.rb
+++ b/lib/gitlab/diff/file.rb
@@ -126,7 +126,7 @@ module Gitlab
repository.blob_at(commit.id, file_path)
end
- def cache_key
+ def file_identifier
"#{file_path}-#{new_file}-#{deleted_file}-#{renamed_file}"
end
end