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

commit.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: 0f8f408d32687001f8b2867d5fa04d924b14e7e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Gitlab
  module Diff
    module FileCollection
      class Commit < Base
        def initialize(commit, diff_options:)
          super(commit,
            project: commit.project,
            diff_options: diff_options,
            diff_refs: commit.diff_refs)
        end

        def cache_key
          ['commit', @diffable.id]
        end
      end
    end
  end
end