mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 23:24:25 +00:00
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: https://github.com/go-gitea/gitea/issues/1826
This commit is contained in:
parent
a977ab7889
commit
31e8436a1c
2
conf/app.ini
vendored
2
conf/app.ini
vendored
@ -460,7 +460,7 @@ DISABLE_DIFF_HIGHLIGHT = false
|
|||||||
; Max number of lines allowed of a single file in diff view
|
; Max number of lines allowed of a single file in diff view
|
||||||
MAX_GIT_DIFF_LINES = 1000
|
MAX_GIT_DIFF_LINES = 1000
|
||||||
; Max number of characters of a line allowed in diff view
|
; 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 number of files shown in diff view
|
||||||
MAX_GIT_DIFF_FILES = 100
|
MAX_GIT_DIFF_FILES = 100
|
||||||
; Arguments for command 'git gc', e.g. "--aggressive --auto"
|
; Arguments for command 'git gc', e.g. "--aggressive --auto"
|
||||||
|
Loading…
Reference in New Issue
Block a user