diff options
Diffstat (limited to 'modules/setting/git.go')
-rw-r--r-- | modules/setting/git.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/setting/git.go b/modules/setting/git.go index 80170e37bf..308d94894b 100644 --- a/modules/setting/git.go +++ b/modules/setting/git.go @@ -19,6 +19,8 @@ var ( MaxGitDiffLines int MaxGitDiffLineCharacters int MaxGitDiffFiles int + CommitsRangeSize int + BranchesRangeSize int VerbosePush bool VerbosePushDelay time.Duration GCArgs []string `ini:"GC_ARGS" delim:" "` @@ -37,6 +39,8 @@ var ( MaxGitDiffLines: 1000, MaxGitDiffLineCharacters: 5000, MaxGitDiffFiles: 100, + CommitsRangeSize: 50, + BranchesRangeSize: 20, VerbosePush: true, VerbosePushDelay: 5 * time.Second, GCArgs: []string{}, @@ -91,5 +95,8 @@ func newGit() { args = append(args, "Version 2") // for focus color } + git.CommitsRangeSize = Git.CommitsRangeSize + git.BranchesRangeSize = Git.BranchesRangeSize + log.Info(format, args...) } |