From 0487c7b6d0d7631818100a4767ecf35c7462c0b7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 15 Oct 2025 16:45:52 -0500 Subject: what is going on here? --- doStats.go | 9 +++------ main.go | 6 ++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/doStats.go b/doStats.go index 3f8ddbb..f83f53e 100644 --- a/doStats.go +++ b/doStats.go @@ -18,7 +18,7 @@ func doVerify() (string, error) { var allerr error if argv.Verify.All != nil { for r := range me.forge.Repos.IterByFullPath() { - if r.Stats == nil { + if r.Stats() == nil { _, err := doStats(r) allerr = errors.Join(allerr, err) } @@ -76,9 +76,6 @@ func doStats(r *gitpb.Repo) (string, error) { } } - // set the repo to have the stats - r.Stats = pb - if counter > 0 { pb.SaveVerbose() } @@ -201,8 +198,8 @@ func safeDelete(r *gitpb.Repo, deleteHash string, keepHash string) error { parts := strings.Split(line, "%00") // git log doesn't actually convert %00 to NULL patchId, err := r.FindPatchIdByHash(parts[0]) _ = err - searchResult := log.Sprintf("NOPE(%d)", r.Stats.Len()) - stat := findPatchIdInStats(r.Stats, patchId) + searchResult := log.Sprintf("NOPE(%d)", r.Stats().Len()) + stat := findPatchIdInStats(r.Stats(), patchId) if stat != nil { searchResult = log.Sprintf("FOUND %10.10s %s", stat.PatchId, stat.Subject) } else { diff --git a/main.go b/main.go index 1c93050..9c266ef 100644 --- a/main.go +++ b/main.go @@ -64,6 +64,11 @@ func main() { log.Info("") log.Info(" todo: make better notes here.") log.Info("") + if fhelp.QuestionUser("test question") { + log.Info("question true") + } else { + log.Info("question false") + } me.forge.Config.Mode = forgepb.ForgeMode_MASTER err := me.forge.ConfigSave() if err != nil { @@ -86,6 +91,7 @@ func main() { } if me.sh.Cmd == "" { + log.Info("forge DOING DEFAULT BEHAVIOR") s, err := doDefaultBehavior() if err != nil { me.sh.BadExit(s, err) -- cgit v1.2.3