summaryrefslogtreecommitdiff
path: root/windowViewRepoPatches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-29 11:42:33 -0600
committerJeff Carr <[email protected]>2025-01-29 12:18:16 -0600
commitbab84d7c903dd53de1cb70cc45a23a5673fa51af (patch)
tree0789214c58c9d55987817f48690ac74596cf4180 /windowViewRepoPatches.go
parent152a25591d5288c7a2391ddc640bf6a689988b29 (diff)
show the new hash
Diffstat (limited to 'windowViewRepoPatches.go')
-rw-r--r--windowViewRepoPatches.go18
1 files changed, 14 insertions, 4 deletions
diff --git a/windowViewRepoPatches.go b/windowViewRepoPatches.go
index dcab4ab..0af4f43 100644
--- a/windowViewRepoPatches.go
+++ b/windowViewRepoPatches.go
@@ -75,21 +75,31 @@ func makeRepoPatchWindow(repo *gitpb.Repo, fset []*forgepb.Patch) *repoPatchWind
grid := pw.stack.NewGrid("", 0, 0)
- grid.NewButton("Extract files to disk", func() {
+ grid.NewLabel(repo.GetGoPath())
+ grid.NewLabel(repo.GetCurrentBranchName())
+
+ grid.NewButton("Apply all with git am", func() {
})
- grid.NewButton("Apply with git am", func() {
+ grid.NewButton("Squash", func() {
})
g := pw.stack.NewGroup("PatchSet List")
// make a grid and a header
filegrid := g.NewGrid("", 0, 0)
- filegrid.NewLabel("repo")
filegrid.NewLabel("patch name")
filegrid.NewLabel("Applied in current branch?")
- filegrid.NewLabel("start hash")
+ filegrid.NewLabel("original hash")
+ filegrid.NewLabel("new hash")
filegrid.NextRow()
+ for _, p := range fset {
+ filegrid.NewLabel(p.Comment)
+ filegrid.NewLabel("yes?")
+ filegrid.NewLabel(p.CommitHash)
+ filegrid.NewLabel(p.NewHash)
+ filegrid.NextRow()
+ }
// add the patches to the grid
// pw.addPatchset(filegrid, pset)
return pw