summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--windowPatches.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/windowPatches.go b/windowPatches.go
index c2d8c4b..a7d40b5 100644
--- a/windowPatches.go
+++ b/windowPatches.go
@@ -58,34 +58,12 @@ func makePatchesWin(patches *forgepb.Patches) *stdPatchTableWin {
grid.NewLabel(fmt.Sprintf("total repos"))
grid.NextRow()
- grid.NewButton("Update", func() {
- log.Info("TODO: doesn't update this window")
- me.forge.GetPatches()
- dwin.win.Custom()
- // loadUpstreamPatchsets()
- })
-
grid.NewButton("Apply All", func() {
var count int
all := patches.SortByFilename()
for all.Scan() {
p := all.Next()
applyPatchNew(p)
- /*
- rn := p.Namespace
- repo := me.forge.FindByGoPath(rn)
- if repo == nil {
- log.Info("Could not figure out repo path", rn)
- return
- }
- count += 1
- if _, err := applyAndTrackPatch(repo, p); err != nil {
- cmd := []string{"git", "am", "--abort"}
- err := repo.RunVerbose(cmd)
- log.Info("warn user of git am error", err)
- return
- }
- */
}
log.Info("ALL PATCHES WORKED! count =", count)
})