diff options
| author | Jeff Carr <[email protected]> | 2024-02-20 06:52:43 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-20 06:52:43 -0600 |
| commit | 9b48a619ad5db8ca75e00a5121dec751eaec5c2e (patch) | |
| tree | a3b0a9bf8f5b00cb9acd2a9cee1455d8edb23d63 /submitPatches.go | |
| parent | d57836a4ce64f12af5b79198e510309c7ab6a566 (diff) | |
still able to do commits
Diffstat (limited to 'submitPatches.go')
| -rw-r--r-- | submitPatches.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/submitPatches.go b/submitPatches.go index 485e0bf..e3d4d97 100644 --- a/submitPatches.go +++ b/submitPatches.go @@ -63,7 +63,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary { }) s.grid.NewButton("GetPatches()", func() { - var count int + var repocount, count int for _, repo := range repolist.AllRepos() { // if repo.GoPath() == "go.wit.com/apps/guireleaser" { // repo.GetUserPatches() @@ -73,11 +73,13 @@ func submitPatchesBox(box *gui.Node) *patchSummary { //if repo.IsDirty() { // continue //} - c, _ := repo.GetMasterPatches() - count += c + patchc, _ := repo.GetMasterPatches() + count += patchc + repocount += 1 // } } s.totalMasterPatches.SetText(strconv.Itoa(count) + " patches") + s.totalMasterRepos.SetText(strconv.Itoa(repocount) + " go repos") }) s.gitPullB = s.grid.NewButton("git pull", func() { |
