mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-09 09:28:03 +02:00
Rework git log parsing and truncating (#260)
This commit is contained in:
@ -24,6 +24,8 @@ var (
|
||||
)
|
||||
|
||||
const truncateLimit = 2 << 18
|
||||
const diffSize = 2 << 12
|
||||
const maxFilesPerDiffCommit = 10
|
||||
|
||||
type RevisionNotFoundError struct{}
|
||||
|
||||
@ -313,7 +315,7 @@ func GetLog(user string, gist string, skip int) ([]*Commit, error) {
|
||||
}
|
||||
}(cmd)
|
||||
|
||||
return parseLog(stdout, truncateLimit), err
|
||||
return parseLog(stdout, maxFilesPerDiffCommit, diffSize)
|
||||
}
|
||||
|
||||
func CloneTmp(user string, gist string, gistTmpId string, email string, remove bool) error {
|
||||
|
Reference in New Issue
Block a user