Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/diff/file_collection/commit.rb')
-rw-r--r--lib/gitlab/diff/file_collection/commit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/diff/file_collection/commit.rb b/lib/gitlab/diff/file_collection/commit.rb
index 7b1d6171e82..0f8f408d326 100644
--- a/lib/gitlab/diff/file_collection/commit.rb
+++ b/lib/gitlab/diff/file_collection/commit.rb
@@ -10,6 +10,10 @@ module Gitlab
diff_options: diff_options,
diff_refs: commit.diff_refs)
end
+
+ def cache_key
+ ['commit', @diffable.id]
+ end
end
end
end