summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordosire <sytses@gmail.com>2014-05-28 15:08:27 +0200
committerdosire <sytses@gmail.com>2014-05-28 15:08:27 +0200
commit7795a4b90c81de76e128227b7773ca6eb1abc80e (patch)
treeb86592b269cfcf1f35339c2a9ab2529e77c9493a
parentc183019ce15218d54a5daaf61dfb5ef58f47f592 (diff)
downloadgitlab-ce-7795a4b90c81de76e128227b7773ca6eb1abc80e.tar.gz
The hard limit should be a lot more liberal, 10x seems reasonable.
-rw-r--r--app/models/commit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index c313aeb7572..81875e1be2d 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -13,8 +13,8 @@ class Commit
DIFF_SAFE_FILES = 100
DIFF_SAFE_LINES = 5000
# Commits above this size will not be rendered in HTML
- DIFF_HARD_LIMIT_FILES = 500
- DIFF_HARD_LIMIT_LINES = 10000
+ DIFF_HARD_LIMIT_FILES = 1000
+ DIFF_HARD_LIMIT_LINES = 50000
class << self
def decorate(commits)