2018-11-05 23:45:35 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-07-26 03:21:42 -04:00
|
|
|
module Gitlab
|
|
|
|
module Diff
|
|
|
|
module FileCollection
|
|
|
|
class Commit < Base
|
|
|
|
def initialize(commit, diff_options:)
|
2016-07-27 13:00:34 -04:00
|
|
|
super(commit,
|
2016-07-26 03:21:42 -04:00
|
|
|
project: commit.project,
|
|
|
|
diff_options: diff_options,
|
|
|
|
diff_refs: commit.diff_refs)
|
|
|
|
end
|
2021-07-15 02:09:39 -04:00
|
|
|
|
|
|
|
def cache_key
|
|
|
|
['commit', @diffable.id]
|
|
|
|
end
|
2016-07-26 03:21:42 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|