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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-10 15:06:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-10 15:06:19 +0300
commit69849c280c5525d132ebaddb1200c390a42ecc06 (patch)
tree2c6ffc6fd6dc4fa719305f25b475391730389747 /app/serializers/diff_file_metadata_entity.rb
parentc157f963db87a40a3ba7b94b339530ee83194bc8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/serializers/diff_file_metadata_entity.rb')
-rw-r--r--app/serializers/diff_file_metadata_entity.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/serializers/diff_file_metadata_entity.rb b/app/serializers/diff_file_metadata_entity.rb
new file mode 100644
index 00000000000..500a844b170
--- /dev/null
+++ b/app/serializers/diff_file_metadata_entity.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class DiffFileMetadataEntity < Grape::Entity
+ expose :added_lines
+ expose :removed_lines
+ expose :new_path
+ expose :old_path
+ expose :new_file?, as: :new_file
+ expose :deleted_file?, as: :deleted_file
+end