File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ const (
25
25
defaultDateFormat = "Mon Jan 2 15:04:05 2006 -0700"
26
26
27
27
// defaultMaxDiffSize is the maximum size for a diff. Larger diffs will be cut off.
28
- defaultMaxDiffSize = 2 * 1024 * 1024 * 1024 // 2GB
28
+ defaultMaxDiffSize int64 = 2 * 1024 * 1024 * 1024 // 2GB
29
29
30
30
// defaultMaxCommitSize is the maximum size for a commit. Larger commits will be cut off.
31
- defaultMaxCommitSize = 2 * 1024 * 1024 * 1024 // 2GB
31
+ defaultMaxCommitSize int64 = 2 * 1024 * 1024 * 1024 // 2GB
32
32
)
33
33
34
34
// contentWriter defines a common interface for writing, reading, and managing diff content.
@@ -210,8 +210,8 @@ type Option func(*Parser)
210
210
func NewParser (options ... Option ) * Parser {
211
211
parser := & Parser {
212
212
dateFormat : defaultDateFormat ,
213
- maxDiffSize : defaultMaxDiffSize ,
214
- maxCommitSize : defaultMaxCommitSize ,
213
+ maxDiffSize : int ( defaultMaxDiffSize ) ,
214
+ maxCommitSize : int ( defaultMaxCommitSize ) ,
215
215
}
216
216
for _ , option := range options {
217
217
option (parser )
You can’t perform that action at this time.
0 commit comments