diff options
| -rw-r--r-- | doStats.go | 9 | ||||
| -rw-r--r-- | main.go | 6 |
2 files changed, 9 insertions, 6 deletions
@@ -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 { @@ -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) |
