(repo model.RepoConfig)
| 162 | |
| 163 | const ( |
| 164 | maxGitErrorBytes = 16 << 10 |
| 165 | gitErrorScanOverlap = 128 |
| 166 | gitErrorTruncatedLabel = "[git stderr truncated]" |
| 167 | ) |
| 168 | |
| 169 | type boundedGitError struct { |
| 170 | buf bytes.Buffer |
| 171 | limit int |
| 172 | truncated bool |
| 173 | scanTail string |
| 174 | sawPermanent bool |
| 175 | sawTransient bool |
| 176 | } |
| 177 | |
| 178 | func (b *boundedGitError) Write(p []byte) (int, error) { |
| 179 | n := len(p) |
no test coverage detected