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

changed_path.rb « git « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 033779466f6b6d8774622c17be334f10bb374a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Gitlab
  module Git
    class ChangedPath
      attr_reader :status, :path

      def initialize(status:, path:)
        @status = status
        @path = path
      end

      def new_file?
        status == :ADDED
      end
    end
  end
end