mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
update todo
This commit is contained in:
1 parent
4654bc8ea5
commit
06b3a9b4e7
2 files changed
+6
-2
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "fmt"
|
"fmt"
|
||||||
"github.com/nbutton23/zxcvbn-go"
|
"github.com/nbutton23/zxcvbn-go"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -13,6 +13,7 @@ func checkDiff(commit1 string, commit2 string) []string {
|
|||||||
var leaks []string
|
var leaks []string
|
||||||
_, seen := cache[commit1+commit2]
|
_, seen := cache[commit1+commit2]
|
||||||
if seen {
|
if seen {
|
||||||
|
fmt.Println("WE HAVE SEEN THIS")
|
||||||
return []string{}
|
return []string{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,9 @@ func (repo Repo) audit() []ReportElem {
|
|||||||
// iterate through branches, git rev-list <branch>
|
// iterate through branches, git rev-list <branch>
|
||||||
branches := bytes.Split(out, []byte("\n"))
|
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)
|
messages := make(chan string)
|
||||||
wg.Add(len(branches) - 3)
|
wg.Add(len(branches) - 3)
|
||||||
|
|
||||||
@@ -96,7 +99,7 @@ func (repo Repo) audit() []ReportElem {
|
|||||||
// iterate through commits
|
// iterate through commits
|
||||||
commits = bytes.Split(out, []byte("\n"))
|
commits = bytes.Split(out, []byte("\n"))
|
||||||
for j, commitB := range commits {
|
for j, commitB := range commits {
|
||||||
fmt.Println(branch, string(commitB), j)
|
// fmt.Println(branch, string(commitB), j)
|
||||||
if j == len(commits)-2 {
|
if j == len(commits)-2 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user