diff options
| author | Jeff Carr <[email protected]> | 2025-09-25 00:44:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-25 00:44:16 -0500 |
| commit | a478df2dccc3a429b5b4db6f45fb07b9e00bcea5 (patch) | |
| tree | c855b670b49c273ab9094bed13d03c079fcb7f44 /doClean.go | |
| parent | 71a5b271a83ff87e771d182e3f1376d1163457ef (diff) | |
more accurate autocomplete
Diffstat (limited to 'doClean.go')
| -rw-r--r-- | doClean.go | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -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 { |
