From f4d60d1fb952697c9de93534572d0aa108aa6506 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 13 Sep 2025 05:32:19 -0500 Subject: work on a new repo Scan() function --- helperPatches.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'helperPatches.go') diff --git a/helperPatches.go b/helperPatches.go index 19fdc62..24a6617 100644 --- a/helperPatches.go +++ b/helperPatches.go @@ -12,9 +12,27 @@ import ( "strings" "go.wit.com/lib/protobuf/forgepb" + "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) +func makeReposTablePB(pb *gitpb.Repos) *gitpb.ReposTable { + t := pb.NewTable("quickListRepos") + t.NewUuid() + + sf := t.AddStringFunc("Namespace", func(r *gitpb.Repo) string { + return r.GetNamespace() + }) + sf.Width = 16 + + userVer := t.AddStringFunc("user", func(repo *gitpb.Repo) string { + ver := repo.GetUserVersion() + return ver + }) + userVer.Width = 4 + return t +} + /* type stdPatchsetTableWin struct { sync.Mutex -- cgit v1.2.3