summaryrefslogtreecommitdiff
path: root/submitPatches.go
diff options
context:
space:
mode:
Diffstat (limited to 'submitPatches.go')
-rw-r--r--submitPatches.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/submitPatches.go b/submitPatches.go
index 74608b1..f2e7842 100644
--- a/submitPatches.go
+++ b/submitPatches.go
@@ -57,7 +57,9 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
s.grid.NewButton("Update Patch Counts", func() {
var repocount, patchcount int
- for _, repo := range repolist.AllRepos() {
+ loop := me.repos.View.UnmergedRepos()
+ for loop.Scan() {
+ repo := loop.Repo()
if repo.ReadOnly() {
continue
}
@@ -72,7 +74,9 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
repocount = 0
patchcount = 0
- for _, repo := range repolist.AllRepos() {
+ loop = me.repos.View.UnmergedRepos()
+ for loop.Scan() {
+ repo := loop.Repo()
if repo.ReadOnly() {
continue
}
@@ -208,7 +212,9 @@ func (s *patchSummary) Update() {
var total, totalgo, dirty, readonly int
var userT, develT, masterT int
// var userP, develP, masterP int
- for _, repo := range repolist.AllRepos() {
+ loop := me.repos.View.UnmergedRepos()
+ for loop.Scan() {
+ repo := loop.Repo()
total += 1
if repo.Status.IsDirty() {
dirty += 1