mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 01:57:20 +00:00
Add pager to the branches page (#14202)
* Add pager to the branches page * override pageSize if bigger than max * Make branches commit range configurable Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@ -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...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user