in case of large file(more than 10M) go-git is unable to calculate the diff and panics.
Checklist:
Describe the bug
sergi/go-diff#89
in case of large file(more than 10M) go-git is unable to calculate the diff and panics.
To Reproduce
- push large file in git
- try to fetch git commit list for ci-trigger on UI
- it will throw error
snippet to reproduce
dat, err := os.ReadFile("/large-file")
if err != nil {
panic(err)
}
data := string(dat)
d := diff.DoWithTimeout("", data, time.Hour)
fmt.Println(d)