disable slow parsing of additions and deletions

This commit is contained in:
2023-02-08 18:36:38 -08:00
parent 7d080ff153
commit 9541470633
3 changed files with 28 additions and 19 deletions

View File

@@ -14,7 +14,9 @@ type Repo git.Repository
func main() {
year := time.Now().Year()
authors := []string{"Groot"}
aName, _ := commits.GetAuthorName()
aEmail, _ := commits.GetAuthorEmail()
authors := []string{aName, aEmail}
mr, err := commits.GetMRRepos()
if err != nil {
panic(err)
@@ -23,7 +25,7 @@ func main() {
fmt.Println("found no repos!")
os.Exit(1)
}
gfreq, err := mr.FrequencyChan(year, authors)
gfreq, err := mr.Frequency(year, authors)
if err != nil {
panic(err)
}