diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2016-08-07 13:49:47 -0300 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-07 09:49:47 -0700 |
commit | 2772791fdad8f0ec4ae49aad020f8afdff2f9c46 (patch) | |
tree | fb07f73dfbab67a42d492009ae97119d39a0587a /modules/setting | |
parent | 08c976f8117b92b25ea197e7dc0372b49d9ee412 (diff) | |
download | gitea-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.go | 1 |
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 |