summaryrefslogtreecommitdiff
path: root/doCommit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-19 06:40:02 -0500
committerJeff Carr <[email protected]>2025-03-19 06:40:02 -0500
commit9aa086e7c41c9297ab7a19d4f536d5d79fffeaac (patch)
tree901c2dee0216707bbf8b84d1010ff7b79a6679d2 /doCommit.go
parent4b2ac683b7725cec816e3e31f7512b7e3f082722 (diff)
golang 1.24 'iter'
Diffstat (limited to 'doCommit.go')
-rw-r--r--doCommit.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/doCommit.go b/doCommit.go
index 461af47..4841a1c 100644
--- a/doCommit.go
+++ b/doCommit.go
@@ -16,10 +16,8 @@ func doCommit() {
log.Info("do a commit everywhere")
doCheckDirtyAndConfigSave()
found := findDirty()
- all := found.All()
var newpatches bool
- for all.Scan() {
- repo := all.Next()
+ for repo := range found.IterAll() {
log.Info("do a commit on repo", repo.GetGoPath())
if err := doCommitRepo(repo); err != nil {
badExit(err)