Welcome to mirror list, hosted at ThFree Co, Russian Federation.

compare.rb « file_collection « diff « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aba5a28b51f3a463b336be49457e071f6c0fa5af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Gitlab
  module Diff
    module FileCollection
      class Compare < Base
        def initialize(compare, project:, diff_options:, diff_refs: nil)
          # Not merge just set defaults
          diff_options = diff_options || Gitlab::Diff::FileCollection.default_options

          super(compare.diffs(diff_options),
            project:      project,
            diff_options: diff_options,
            diff_refs:    diff_refs)
        end
      end
    end
  end
end