diff --git a/checks.go b/checks.go index 2d17ca83..debc5e3a 100644 --- a/checks.go +++ b/checks.go @@ -1,7 +1,7 @@ package main import ( - _ "fmt" + "fmt" "github.com/nbutton23/zxcvbn-go" "os/exec" "strings" @@ -13,6 +13,7 @@ func checkDiff(commit1 string, commit2 string) []string { var leaks []string _, seen := cache[commit1+commit2] if seen { + fmt.Println("WE HAVE SEEN THIS") return []string{} } diff --git a/repo.go b/repo.go index a5e45db2..2571f3cd 100644 --- a/repo.go +++ b/repo.go @@ -73,6 +73,9 @@ func (repo Repo) audit() []ReportElem { // iterate through branches, git rev-list branches := bytes.Split(out, []byte("\n")) + // TODO instead of making branches concurrent use commits + // make the wait group update the cache. Use channel to communicate + // cache misses and leaks messages := make(chan string) wg.Add(len(branches) - 3) @@ -96,7 +99,7 @@ func (repo Repo) audit() []ReportElem { // iterate through commits commits = bytes.Split(out, []byte("\n")) for j, commitB := range commits { - fmt.Println(branch, string(commitB), j) + // fmt.Println(branch, string(commitB), j) if j == len(commits)-2 { break }