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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
521 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 Compare < Base
def initialize(compare, project:, diff_options:, diff_refs: nil)
super(compare,
2022-10-11 01:57:18 +05:30
project: project,
2016-09-13 17:45:13 +05:30
diff_options: diff_options,
2022-10-11 01:57:18 +05:30
diff_refs: diff_refs)
2016-09-13 17:45:13 +05:30
end
2019-02-15 15:39:39 +05:30
def unfold_diff_lines(positions)
# no-op
end
2021-09-30 23:02:18 +05:30
def cache_key
['compare', @diffable.head.id, @diffable.base.id]
end
2016-09-13 17:45:13 +05:30
end
end
end
end