2019-10-10 12:06:19 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DiffFileMetadataEntity < Grape::Entity
|
2021-07-28 15:09:57 +00:00
|
|
|
include DiffFileConflictType
|
|
|
|
|
2019-10-10 12:06:19 +00:00
|
|
|
expose :added_lines
|
|
|
|
expose :removed_lines
|
|
|
|
expose :new_path
|
|
|
|
expose :old_path
|
|
|
|
expose :new_file?, as: :new_file
|
|
|
|
expose :deleted_file?, as: :deleted_file
|
2021-01-22 00:09:25 +00:00
|
|
|
expose :submodule?, as: :submodule
|
2020-05-22 12:08:15 +00:00
|
|
|
expose :file_identifier_hash
|
|
|
|
expose :file_hash
|
2019-10-10 12:06:19 +00:00
|
|
|
end
|