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