From 2772791fdad8f0ec4ae49aad020f8afdff2f9c46 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sun, 7 Aug 2016 13:49:47 -0300 Subject: 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) --- modules/setting/setting.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 0de1963c..6581efe4 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 -- cgit v1.2.3