debian-mirror-gitlab/lib/gitlab/git/changed_path.rb
2021-03-08 18:12:59 +05:30

18 lines
281 B
Ruby

# 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