diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-31 14:41:25 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-31 14:41:25 -0500 |
commit | 04cf618b6ff943527938f64a451a420b494b5a76 (patch) | |
tree | 115e9f7bae89e2a1eba453560cbe6ccb551693ba /lib/api/v3 | |
parent | ce869e3964a40b4cf04a803f5201d940ad61b13c (diff) | |
download | gitlab-ce-04cf618b6ff943527938f64a451a420b494b5a76.tar.gz |
Change no_limits to limitsdm-collapsed-blob
Diffstat (limited to 'lib/api/v3')
-rw-r--r-- | lib/api/v3/commits.rb | 2 | ||||
-rw-r--r-- | lib/api/v3/entities.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/v3/commits.rb b/lib/api/v3/commits.rb index ec6c6c7b298..5936f4700aa 100644 --- a/lib/api/v3/commits.rb +++ b/lib/api/v3/commits.rb @@ -167,7 +167,7 @@ module API } if params[:path] - commit.raw_diffs(no_limits: true).each do |diff| + commit.raw_diffs(limits: false).each do |diff| next unless diff.new_path == params[:path] lines = Gitlab::Diff::Parser.new.parse(diff.diff.each_line) diff --git a/lib/api/v3/entities.rb b/lib/api/v3/entities.rb index 7fbd4949850..7c5065dee90 100644 --- a/lib/api/v3/entities.rb +++ b/lib/api/v3/entities.rb @@ -226,7 +226,7 @@ module API class MergeRequestChanges < MergeRequest expose :diffs, as: :changes, using: ::API::Entities::RepoDiff do |compare, _| - compare.raw_diffs(no_limits: true).to_a + compare.raw_diffs(limits: false).to_a end end |