debian-mirror-gitlab/lib/gitlab/diff/file_collection/commit.rb
2021-09-30 23:02:18 +05:30

20 lines
409 B
Ruby

# frozen_string_literal: true
module Gitlab
module Diff
module FileCollection
class Commit < Base
def initialize(commit, diff_options:)
super(commit,
project: commit.project,
diff_options: diff_options,
diff_refs: commit.diff_refs)
end
def cache_key
['commit', @diffable.id]
end
end
end
end
end