aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/git.go')
-rw-r--r--modules/setting/git.go17
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/setting/git.go b/modules/setting/git.go
index 457b35936e..b8e7bb9cf8 100644
--- a/modules/setting/git.go
+++ b/modules/setting/git.go
@@ -12,9 +12,13 @@ import (
// Git settings
var Git = struct {
- Path string
- HomePath string
- DisableDiffHighlight bool
+ Path string
+ HomePath string
+ DisableDiffHighlight bool
+ Reflog struct {
+ Enabled bool
+ Expiration int
+ } `ini:"git.reflog"`
MaxGitDiffLines int
MaxGitDiffLineCharacters int
MaxGitDiffFiles int
@@ -37,6 +41,13 @@ var Git = struct {
GC int `ini:"GC"`
} `ini:"git.timeout"`
}{
+ Reflog: struct {
+ Enabled bool
+ Expiration int
+ }{
+ Enabled: true,
+ Expiration: 90,
+ },
DisableDiffHighlight: false,
MaxGitDiffLines: 1000,
MaxGitDiffLineCharacters: 5000,