diff options
Diffstat (limited to 'lib/gitlab/diff/file_collection/commit.rb')
-rw-r--r-- | lib/gitlab/diff/file_collection/commit.rb | 4 |
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 |