Skip to content

Commit 31e8436

Browse files
silverwindappleboy
authored andcommitted
Use a better default MAX_GIT_DIFF_LINE_CHARACTERS (#1845)
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: #1826
1 parent a977ab7 commit 31e8436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conf/app.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ DISABLE_DIFF_HIGHLIGHT = false
460460
; Max number of lines allowed of a single file in diff view
461461
MAX_GIT_DIFF_LINES = 1000
462462
; Max number of characters of a line allowed in diff view
463-
MAX_GIT_DIFF_LINE_CHARACTERS = 500
463+
MAX_GIT_DIFF_LINE_CHARACTERS = 5000
464464
; Max number of files shown in diff view
465465
MAX_GIT_DIFF_FILES = 100
466466
; Arguments for command 'git gc', e.g. "--aggressive --auto"

0 commit comments

Comments
 (0)