24 lines
521 B
Ruby
24 lines
521 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Diff
|
|
module FileCollection
|
|
class Compare < Base
|
|
def initialize(compare, project:, diff_options:, diff_refs: nil)
|
|
super(compare,
|
|
project: project,
|
|
diff_options: diff_options,
|
|
diff_refs: diff_refs)
|
|
end
|
|
|
|
def unfold_diff_lines(positions)
|
|
# no-op
|
|
end
|
|
|
|
def cache_key
|
|
['compare', @diffable.head.id, @diffable.base.id]
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|