From 8eae35d606be59175adb41262deec13d3f5ed5a1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 8 Oct 2025 02:13:39 -0500 Subject: show totals --- doGit.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doGit.go b/doGit.go index ae1cb6f..0c62a48 100644 --- a/doGit.go +++ b/doGit.go @@ -66,11 +66,17 @@ func doGit() (string, error) { if argv.Git.DeleteUntracked { initForge() + var totals, repos int for repo := range me.forge.Repos.IterAll() { if !strings.HasPrefix(repo.Namespace, "go.wit.com") { continue } files, _ := repo.GitDeleteOthers() + if len(files) == 0 { + continue + } + totals += len(files) + repos += 1 log.Info(len(files), repo.Namespace) log.Info(strings.Join(files, "\n")) if argv.Force { @@ -85,6 +91,7 @@ func doGit() (string, error) { } } } + log.Info("total files to delete:", totals, "in", repos, "repos") } return "todo: put something here", nil -- cgit v1.2.3