summaryrefslogtreecommitdiff
path: root/doStats.go
diff options
context:
space:
mode:
Diffstat (limited to 'doStats.go')
-rw-r--r--doStats.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/doStats.go b/doStats.go
index 5fc5be4..073fe0f 100644
--- a/doStats.go
+++ b/doStats.go
@@ -166,8 +166,8 @@ func last100(r *gitpb.Repo, pb *gitpb.Stats) (int, error) {
ctime, err := cobol.GetTime(parts[2])
allerr = errors.Join(allerr, err)
astat.Ctime = timestamppb.New(*ctime)
- astat.Subject = parts[4]
- astat.Type = gitpb.Stat_REMOTE
+ // astat.Subject = parts[4]
+ // astat.Type = gitpb.Stat_REMOTE
pb.Append(astat)
}
return counter, allerr
@@ -215,7 +215,7 @@ func safeDelete(r *gitpb.Repo, deleteHash string, keepHash string) error {
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)
+ searchResult = log.Sprintf("FOUND %10.10s %s", stat.PatchId, "todo: []slice")
} else {
ACTUALLYOK = false
}
@@ -290,8 +290,8 @@ func updateStats(r *gitpb.Repo, pb *gitpb.Stats, remoteName string) (int, error)
ctime, err := cobol.GetTime(parts[2])
allerr = errors.Join(allerr, err)
astat.Ctime = timestamppb.New(*ctime)
- astat.Subject = parts[4]
- astat.Type = gitpb.Stat_REMOTE
+ // astat.Subject = parts[4]
+ // astat.Type = gitpb.Stat_REMOTE
pb.Append(astat)
}
return counter, allerr
@@ -368,9 +368,9 @@ func makeRefs(r *gitpb.Repo, remoteName string) error {
// }
counter += 1
newstat := new(gitpb.Stat)
- newstat.Type = gitpb.Stat_REMOTE
+ // newstat.Type = gitpb.Stat_REMOTE
newstat.Hash = parts[0]
- newstat.Name = parts[1]
+ // newstat.Name = parts[1]
if stats.Len() == 0 {
stats.Append(newstat)
continue