summaryrefslogtreecommitdiff
path: root/helperPatches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-13 05:32:19 -0500
committerJeff Carr <[email protected]>2025-09-13 05:32:19 -0500
commitf4d60d1fb952697c9de93534572d0aa108aa6506 (patch)
treeedd85f8b5448f0789258cea58fcc1681bb051c4a /helperPatches.go
parent72d728d4e7104274067bde712373504dd47c1780 (diff)
work on a new repo Scan() function
Diffstat (limited to 'helperPatches.go')
-rw-r--r--helperPatches.go18
1 files changed, 18 insertions, 0 deletions
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