summaryrefslogtreecommitdiff
path: root/lib/gitlab/git
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-30 14:50:02 -0500
committerDouwe Maan <douwe@selenight.nl>2017-05-30 14:50:02 -0500
commitd9461314ada3135593a53ba61a73dd695ee3a38d (patch)
tree8144454a07e3d6cccee79fcf5ba576c35372d3e8 /lib/gitlab/git
parentaed0387f97ec62b184da90bdca0ce40f9dc58b45 (diff)
downloadgitlab-ce-d9461314ada3135593a53ba61a73dd695ee3a38d.tar.gz
Fix Diff#to_hash and #init_from_hash
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r--lib/gitlab/git/diff.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitlab/git/diff.rb b/lib/gitlab/git/diff.rb
index 201a115503b..e33fe4b305a 100644
--- a/lib/gitlab/git/diff.rb
+++ b/lib/gitlab/git/diff.rb
@@ -17,6 +17,9 @@ module Gitlab
attr_accessor :expanded
+ # We need this accessor because of `to_hash` and `init_from_hash`
+ attr_accessor :too_large
+
# The maximum size of a diff to display.
SIZE_LIMIT = 100.kilobytes