diff options
| author | Jeff Carr <[email protected]> | 2025-10-15 16:45:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-15 16:45:52 -0500 |
| commit | 0487c7b6d0d7631818100a4767ecf35c7462c0b7 (patch) | |
| tree | caeb1628a6e4ac06a414e8f1dfcaf185f9463c0b /doStats.go | |
| parent | 3ac66c90f4c1151d1b65f1dbf06060b4c55603b0 (diff) | |
what is going on here?
Diffstat (limited to 'doStats.go')
| -rw-r--r-- | doStats.go | 9 |
1 files changed, 3 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 { |
