show the new hash
This commit is contained in:
parent
152a25591d
commit
bab84d7c90
|
@ -75,21 +75,31 @@ func makeRepoPatchWindow(repo *gitpb.Repo, fset []*forgepb.Patch) *repoPatchWind
|
||||||
|
|
||||||
grid := pw.stack.NewGrid("", 0, 0)
|
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")
|
g := pw.stack.NewGroup("PatchSet List")
|
||||||
|
|
||||||
// make a grid and a header
|
// make a grid and a header
|
||||||
filegrid := g.NewGrid("", 0, 0)
|
filegrid := g.NewGrid("", 0, 0)
|
||||||
filegrid.NewLabel("repo")
|
|
||||||
filegrid.NewLabel("patch name")
|
filegrid.NewLabel("patch name")
|
||||||
filegrid.NewLabel("Applied in current branch?")
|
filegrid.NewLabel("Applied in current branch?")
|
||||||
filegrid.NewLabel("start hash")
|
filegrid.NewLabel("original hash")
|
||||||
|
filegrid.NewLabel("new hash")
|
||||||
filegrid.NextRow()
|
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
|
// add the patches to the grid
|
||||||
// pw.addPatchset(filegrid, pset)
|
// pw.addPatchset(filegrid, pset)
|
||||||
return pw
|
return pw
|
||||||
|
|
Loading…
Reference in New Issue