summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 16:45:52 -0500
committerJeff Carr <[email protected]>2025-10-15 16:45:52 -0500
commit0487c7b6d0d7631818100a4767ecf35c7462c0b7 (patch)
treecaeb1628a6e4ac06a414e8f1dfcaf185f9463c0b
parent3ac66c90f4c1151d1b65f1dbf06060b4c55603b0 (diff)
what is going on here?
-rw-r--r--doStats.go9
-rw-r--r--main.go6
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)