我们在内部安装了Gitlab,并希望显示出很大的差异。根据本期https://gitlab.com/gitlab-org/gitlab-foss/issues/30061的评论,我们进行了以下更改
vim /opt/gitlab/embedded/service/gitlab-rails/app/models/commit.rb
DIFF_HARD_LIMIT_FILES = 10000
DIFF_HARD_LIMIT_LINES = 500000
vim /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/git/diff.rb
DIFF_SIZE_LIMIT = 1024000 # 1000 KB
DIFF_COLLAPSE_LIMIT = 102400 # 100 KB
gitlab-ctl reconfigure
gitlab-ctl restart unicorn
也没有运气。有没有适当的方法来增加gitlab的差异限制?
答案 0 :(得分:2)
现在看起来可以从GUI中对其进行编辑。
CAUTION: Caution:
This setting is experimental. An increased maximum will increase resource
consumption of your instance. Keep this in mind when adjusting the maximum.
Go to Admin Area > Settings > General.
Expand Diff limits.
Enter a value for Maximum diff patch size, measured in bytes.
Click on Save changes.
答案 1 :(得分:0)