debian-mirror-gitlab/lib/gitlab/diff/file_collection/commit.rb

21 lines
409 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2016-09-13 17:45:13 +05:30
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
2021-09-30 23:02:18 +05:30
def cache_key
['commit', @diffable.id]
end
2016-09-13 17:45:13 +05:30
end
end
end
end