diff options
author | zeripath <art27@cantab.net> | 2020-01-12 18:02:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 18:02:36 +0000 |
commit | 4072f28e60dc6bc6ae637e68e31392d28d5cf3f3 (patch) | |
tree | 911b99691cc30004c8de205e1c6b4cae3ac4bc0a /modules/setting/git.go | |
parent | dbeef6bb0268460f22ed6158704aa88002bf5e0c (diff) | |
download | gitea-4072f28e60dc6bc6ae637e68e31392d28d5cf3f3.tar.gz gitea-4072f28e60dc6bc6ae637e68e31392d28d5cf3f3.zip |
Make hook status printing configurable with delay (#9641) (#9725)
* Delay printing hook statuses until after 1 second
* Move to a 5s delay, wrapped writer structure and add config
* Update cmd/hook.go
* Apply suggestions from code review
* Update cmd/hook.go
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'modules/setting/git.go')
-rw-r--r-- | modules/setting/git.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/setting/git.go b/modules/setting/git.go index 8495be8836..8c8179cba6 100644 --- a/modules/setting/git.go +++ b/modules/setting/git.go @@ -21,6 +21,8 @@ var ( MaxGitDiffLines int MaxGitDiffLineCharacters int MaxGitDiffFiles int + VerbosePush bool + VerbosePushDelay time.Duration GCArgs []string `ini:"GC_ARGS" delim:" "` EnableAutoGitWireProtocol bool Timeout struct { @@ -36,6 +38,8 @@ var ( MaxGitDiffLines: 1000, MaxGitDiffLineCharacters: 5000, MaxGitDiffFiles: 100, + VerbosePush: true, + VerbosePushDelay: 5 * time.Second, GCArgs: []string{}, EnableAutoGitWireProtocol: true, Timeout: struct { |