summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-08 10:10:14 -0600
committerJeff Carr <[email protected]>2025-01-08 10:10:14 -0600
commitae8fd94a2c33f1bcfa56e009c4b88d82f0712c9d (patch)
tree40564e11416acc09442d68e9f7e8ddc1038c38bc
parente27e1716d77f4d4f09d89285707895724e7a3838 (diff)
output cleanupsv0.22.37
-rw-r--r--Makefile2
-rw-r--r--doCheckout.go2
-rw-r--r--exit.go4
-rw-r--r--main.go10
4 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index d84db3b..61d6d37 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
info: install
- forge
+ forge dirty
vet:
@GO111MODULE=off go vet
diff --git a/doCheckout.go b/doCheckout.go
index eb48c04..1ea4b67 100644
--- a/doCheckout.go
+++ b/doCheckout.go
@@ -53,7 +53,7 @@ func doCheckDirtyAndConfigSave() {
}
}
}
- log.Printf("dirty check %d took:%s\n", count, shell.FormatDuration(time.Since(now)))
+ log.Printf("dirty check (%d repos) took:%s\n", count, shell.FormatDuration(time.Since(now)))
me.forge.SetConfigSave(configSave)
}
diff --git a/exit.go b/exit.go
index 8cddc11..e80df8a 100644
--- a/exit.go
+++ b/exit.go
@@ -7,7 +7,9 @@ import (
)
func okExit(thing string) {
- log.Info(thing, "ok")
+ if thing != "" {
+ log.Info("forge exit:", thing, "ok")
+ }
if configSave {
me.forge.SetConfigSave(configSave)
}
diff --git a/main.go b/main.go
index 446e4b9..76e4a0a 100644
--- a/main.go
+++ b/main.go
@@ -94,8 +94,6 @@ func main() {
okExit("")
}
- log.Info("found", me.found.Len(), "repos. found", len(me.foundPaths), "paths from .config/forge")
-
if argv.Dirty != nil {
findAll() // select all the repos
doCheckDirtyAndConfigSave()
@@ -136,25 +134,25 @@ func main() {
if argv.GitReset != nil {
findAll() // select all the repos
doGitReset()
- okExit("patches")
+ okExit("reset")
}
if argv.List != nil {
argv.List.findRepos()
// print out the repos
me.forge.PrintHumanTable(me.found)
- okExit("patches")
+ okExit("")
}
if argv.Patch != nil {
if argv.Patch.Show != nil {
sendDevelDiff("fixme")
// sendMasterDiff()
- okExit("patches")
+ okExit("")
}
if argv.Patch.List != nil {
listPatches()
- okExit("patches")
+ okExit("patch list")
}
}