summaryrefslogtreecommitdiff
path: root/doDirty.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-07-01 18:23:38 -0500
committerJeff Carr <[email protected]>2025-07-01 18:23:38 -0500
commitd2a0aa3098e48d32f41abf0a90340543775366d7 (patch)
tree4bf550ac018ba21cdf1224c8160bd0df30c77417 /doDirty.go
parent47b7222445a382445e7a5d8ced74ebeec17810ec (diff)
more doFind() cleanups
Diffstat (limited to 'doDirty.go')
-rw-r--r--doDirty.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/doDirty.go b/doDirty.go
index bebf456..49acbfe 100644
--- a/doDirty.go
+++ b/doDirty.go
@@ -12,7 +12,6 @@ import (
)
func doDirty() {
- findAll() // select all the repos
doCheckDirtyAndConfigSave()
found := findDirty()
if argv.Verbose {
@@ -26,7 +25,7 @@ func straightCheckDirty() int {
var count int
// var total int
// now := time.Now()
- for repo := range me.found.IterAll() {
+ for repo := range me.forge.Repos.IterAll() {
// total += 1
if repo.IsDirty() {
count += 1
@@ -52,7 +51,7 @@ func doCheckDirtyAndConfigSave() {
now := time.Now()
me.forge.RillFuncError(doCheckDirty)
end := straightCheckDirty()
- log.Printf("dirty check (%d dirty repos) (%d total repos) took:%s\n", end, me.found.Len(), shell.FormatDuration(time.Since(now)))
+ log.Printf("dirty check (%d dirty repos) (%d total repos) took:%s\n", end, me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
if start != end {
// todo: use internal forgepb configsave flag. should work?