diff options
Diffstat (limited to 'helperPatches.go')
| -rw-r--r-- | helperPatches.go | 18 |
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 |
