diff options
author | zeripath <art27@cantab.net> | 2020-01-12 08:46:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 08:46:03 +0000 |
commit | 65baacf2273f74876b3faed93f60641389a20d39 (patch) | |
tree | d0bda6df0caf13588f5be3c7192e69320a1ac1e0 /modules | |
parent | 83f9359a7545601754e775a79273a326e833b0bc (diff) | |
download | gitea-65baacf2273f74876b3faed93f60641389a20d39.tar.gz gitea-65baacf2273f74876b3faed93f60641389a20d39.zip |
Make hook status printing configurable with delay (#9641)
* 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>
Diffstat (limited to 'modules')
-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 { |