mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
Adding commit range feature via 'commit-to' and 'commit-from' options
This commit is contained in:
1 parent
593edeae21
commit
a0f72a4e35
11 files changed
+250
-9
No files matched your search
+1
-1
@@ -247,7 +247,7 @@ func (repo *Repo) Audit() error {
|
||||
semaphore := make(chan bool, howManyThreads(repo.Manager.Opts.Threads))
|
||||
wg := sync.WaitGroup{}
|
||||
err = cIter.ForEach(func(c *object.Commit) error {
|
||||
if c == nil {
|
||||
if c == nil || c.Hash.String() == repo.Manager.Opts.CommitTo {
|
||||
return storer.ErrStop
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user