]> source.dussan.org Git - gitea.git/commitdiff
Use a better default MAX_GIT_DIFF_LINE_CHARACTERS (#1845)
authorsilverwind <me@silverwind.io>
Thu, 1 Jun 2017 01:10:11 +0000 (03:10 +0200)
committerBo-Yi Wu <appleboy.tw@gmail.com>
Thu, 1 Jun 2017 01:10:11 +0000 (20:10 -0500)
Tests indicate that line length alone does not make browsers slow, so
increase the default threshold after which diffs get surpressed for line
length from 500 to a more reasonable 5000 characters.

Fixes: https://github.com/go-gitea/gitea/issues/1826
conf/app.ini

index b3b306ccc37eed6e13aa7cc66de5e3b5b95aa0eb..3eb46465cf942844283e1d5b47beaa1fea12e6e7 100644 (file)
@@ -460,7 +460,7 @@ DISABLE_DIFF_HIGHLIGHT = false
 ; Max number of lines allowed of a single file in diff view
 MAX_GIT_DIFF_LINES = 1000
 ; Max number of characters of a line allowed in diff view
-MAX_GIT_DIFF_LINE_CHARACTERS = 500
+MAX_GIT_DIFF_LINE_CHARACTERS = 5000
 ; Max number of files shown in diff view
 MAX_GIT_DIFF_FILES = 100
 ; Arguments for command 'git gc', e.g. "--aggressive --auto"