]> source.dussan.org Git - gitea.git/commitdiff
Sync MaxGitDiffLineCharacters with conf/app.ini (#2779)
authorMichael Kuhn <suraia@ikkoku.de>
Wed, 25 Oct 2017 08:28:58 +0000 (10:28 +0200)
committerLunny Xiao <xiaolunwen@gmail.com>
Wed, 25 Oct 2017 08:28:58 +0000 (16:28 +0800)
MAX_GIT_DIFF_LINE_CHARACTERS was updated in #1845 but the corresponding
default value of MaxGitDiffLineCharacters was not changed. This can lead
to inconsistencies.

modules/setting/setting.go

index c991a1760c56d92559d20b3d9c854b9318d9d9d8..cb8cf7d39aaf36d61f663b90823a207b468107fe 100644 (file)
@@ -438,7 +438,7 @@ var (
        }{
                DisableDiffHighlight:     false,
                MaxGitDiffLines:          1000,
-               MaxGitDiffLineCharacters: 500,
+               MaxGitDiffLineCharacters: 5000,
                MaxGitDiffFiles:          100,
                GCArgs:                   []string{},
                Timeout: struct {