summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-08-07 13:49:47 -0300
committer无闻 <u@gogs.io>2016-08-07 09:49:47 -0700
commit2772791fdad8f0ec4ae49aad020f8afdff2f9c46 (patch)
treefb07f73dfbab67a42d492009ae97119d39a0587a /modules/setting
parent08c976f8117b92b25ea197e7dc0372b49d9ee412 (diff)
downloadgitea-2772791fdad8f0ec4ae49aad020f8afdff2f9c46.tar.gz
gitea-2772791fdad8f0ec4ae49aad020f8afdff2f9c46.zip
Improve diff highlight (#3390)
- Try to reduce memory allocations - Add possibility to disable diff highlight (can improve performance for large diffs) - Tweaking with cost for prettier (cleaner) diffs - Do not calculate diff when the number of removed lines in a block is not equal to the number of added lines (this usually resulted in ugly diffs)
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 0de1963c5c..6581efe4f0 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -191,6 +191,7 @@ var (
// Git settings
Git struct {
+ DisableDiffHighlight bool
MaxGitDiffLines int
MaxGitDiffLineCharacters int
MaxGitDiffFiles int