summaryrefslogtreecommitdiff
path: root/doGit.go
diff options
context:
space:
mode:
Diffstat (limited to 'doGit.go')
-rw-r--r--doGit.go7
1 files changed, 7 insertions, 0 deletions
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