diff options
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 { |
