Skip to content

Commit

Permalink
Use a better default MAX_GIT_DIFF_LINE_CHARACTERS (#1845)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
silverwind authored and appleboy committed Jun 1, 2017
1 parent a977ab7 commit 31e8436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/app.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 31e8436

Please sign in to comment.