2018-11-06 04:45:35 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-07-26 07:21:42 +00:00
|
|
|
module Gitlab
|
|
|
|
module Diff
|
|
|
|
module FileCollection
|
|
|
|
class Compare < Base
|
|
|
|
def initialize(compare, project:, diff_options:, diff_refs: nil)
|
2016-07-27 17:00:34 +00:00
|
|
|
super(compare,
|
2016-07-26 07:21:42 +00:00
|
|
|
project: project,
|
|
|
|
diff_options: diff_options,
|
|
|
|
diff_refs: diff_refs)
|
|
|
|
end
|
2018-12-04 13:15:19 +00:00
|
|
|
|
|
|
|
def unfold_diff_lines(positions)
|
|
|
|
# no-op
|
|
|
|
end
|
2021-07-15 06:09:39 +00:00
|
|
|
|
|
|
|
def cache_key
|
|
|
|
['compare', @diffable.head.id, @diffable.base.id]
|
|
|
|
end
|
2016-07-26 07:21:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|