diff options
| author | Jeff Carr <[email protected]> | 2025-03-10 23:25:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-10 23:25:27 -0500 |
| commit | 95d4e03ca44a2bff04d4722248f5dff84a137529 (patch) | |
| tree | 5bd81242ccaaa3c99d15c23ecbfdd8665837eb16 /windowPatches.go | |
| parent | 3870959747c13246441a0e4e79503e030176736b (diff) | |
more patch cleanups
Diffstat (limited to 'windowPatches.go')
| -rw-r--r-- | windowPatches.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/windowPatches.go b/windowPatches.go index 95c3b74..f11152b 100644 --- a/windowPatches.go +++ b/windowPatches.go @@ -5,6 +5,7 @@ package main import ( "fmt" + "path/filepath" "sync" "go.wit.com/gui" @@ -90,7 +91,11 @@ func AddPatchesPB(tbox *gui.Node, pb *forgepb.Patches) *forgepb.PatchesTable { t.SetParent(tbox) t.AddRepoNamespace() - t.AddFilename() + // t.AddFilename() + t.AddStringFunc("file", func(p *forgepb.Patch) string { + _, fname := filepath.Split(p.Filename) + return fname + }) t.AddCommitHash() t.ShowTable() |
