diff options
| author | Jeff Carr <[email protected]> | 2025-10-08 02:13:39 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-08 02:13:39 -0500 |
| commit | 8eae35d606be59175adb41262deec13d3f5ed5a1 (patch) | |
| tree | 3fc0038058f244d1347a24a5c1a4b2c35fe96264 /doGit.go | |
| parent | 04661cd2056843d829085eb36b32d061f57275cb (diff) | |
show totals
Diffstat (limited to 'doGit.go')
| -rw-r--r-- | doGit.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |
