gitlab-org--gitlab-foss/lib/gitlab/git/changed_path.rb

19 lines
281 B
Ruby
Raw Normal View History

# 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