debian-mirror-gitlab/app/serializers/diff_file_metadata_entity.rb

16 lines
362 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
class DiffFileMetadataEntity < Grape::Entity
2021-10-27 15:23:28 +05:30
include DiffFileConflictType
2019-12-21 20:55:43 +05:30
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-03-11 19:13:27 +05:30
expose :submodule?, as: :submodule
2020-06-23 00:09:42 +05:30
expose :file_identifier_hash
expose :file_hash
2019-12-21 20:55:43 +05:30
end