summaryrefslogtreecommitdiff
path: root/doClean.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-25 00:44:16 -0500
committerJeff Carr <[email protected]>2025-09-25 00:44:16 -0500
commita478df2dccc3a429b5b4db6f45fb07b9e00bcea5 (patch)
treec855b670b49c273ab9094bed13d03c079fcb7f44 /doClean.go
parent71a5b271a83ff87e771d182e3f1376d1163457ef (diff)
more accurate autocomplete
Diffstat (limited to 'doClean.go')
-rw-r--r--doClean.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/doClean.go b/doClean.go
index ef35e35..dfc80a9 100644
--- a/doClean.go
+++ b/doClean.go
@@ -6,9 +6,7 @@ package main
import (
"fmt"
"path/filepath"
- "time"
- "go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
@@ -58,21 +56,23 @@ if repo.IsSubset("user", "devel") {
func doClean() error {
setForgeMode(forgepb.ForgeMode_CLEAN)
- if argv.Clean.Verify != nil {
- stats := me.forge.RillRepos(checkRemoteBranches)
- for path, stat := range stats {
- if stat.Err == nil {
- continue
- }
- dur := stat.End.Sub(stat.Start)
- if dur > time.Second {
- log.Infof("%s checkRemoteBranches() took a long time (%s) (err=%v)\n", path, shell.FormatDuration(dur), stat.Err)
+ /*
+ if argv.Clean.Verify != nil {
+ stats := me.forge.RillRepos(checkRemoteBranches)
+ for path, stat := range stats {
+ if stat.Err == nil {
+ continue
+ }
+ dur := stat.End.Sub(stat.Start)
+ if dur > time.Second {
+ log.Infof("%s checkRemoteBranches() took a long time (%s) (err=%v)\n", path, shell.FormatDuration(dur), stat.Err)
+ }
}
+ // log.Infof("%-60s, %-60s %v %s\n", stat.Start, stat.End.String(), dur, path)
+ // log.Infof("%-30v %s %v\n", dur, path, stat.Err)
+ return nil
}
- // log.Infof("%-60s, %-60s %v %s\n", stat.Start, stat.End.String(), dur, path)
- // log.Infof("%-30v %s %v\n", dur, path, stat.Err)
- return nil
- }
+ */
// fix this to work, then delete all the other options for "forge clean'
if err := me.forge.DoAllCheckoutMaster(); err != nil {