still able to do commits

This commit is contained in:
Jeff Carr 2024-02-20 06:52:43 -06:00
parent d57836a4ce
commit 9b48a619ad
1 changed files with 5 additions and 3 deletions

View File

@ -63,7 +63,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
}) })
s.grid.NewButton("GetPatches()", func() { s.grid.NewButton("GetPatches()", func() {
var count int var repocount, count int
for _, repo := range repolist.AllRepos() { for _, repo := range repolist.AllRepos() {
// if repo.GoPath() == "go.wit.com/apps/guireleaser" { // if repo.GoPath() == "go.wit.com/apps/guireleaser" {
// repo.GetUserPatches() // repo.GetUserPatches()
@ -73,11 +73,13 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
//if repo.IsDirty() { //if repo.IsDirty() {
// continue // continue
//} //}
c, _ := repo.GetMasterPatches() patchc, _ := repo.GetMasterPatches()
count += c count += patchc
repocount += 1
// } // }
} }
s.totalMasterPatches.SetText(strconv.Itoa(count) + " patches") s.totalMasterPatches.SetText(strconv.Itoa(count) + " patches")
s.totalMasterRepos.SetText(strconv.Itoa(repocount) + " go repos")
}) })
s.gitPullB = s.grid.NewButton("git pull", func() { s.gitPullB = s.grid.NewButton("git pull", func() {