From 0f48d99b437f7f7b96ec1b1d2f507ed15de98500 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 7 Mar 2024 21:35:48 -0600 Subject: [PATCH] option to increment only changed repos Signed-off-by: Jeff Carr --- globalDisplayOptions.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index 4ec5c93..c2ff1d2 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -186,6 +186,26 @@ func globalDisplayOptions(box *gui.Node) { repo.Status.IncrementMinorVersion("trying minor") } }) + grid.NewButton("ncrement changed repos", func() { + me.Disable() + for _, repo := range me.repos.View.AllRepos() { + if whitelist(repo.GoPath()) { + continue + } + if repo.ReadOnly() { + continue + } + lasttag := repo.Status.LastTag() + if repo.Status.GetCurrentVersion() == lasttag { + log.Info("skipping unchanged repo", repo.Status.GoPath()) + repo.Status.SetTargetVersion(lasttag) + continue + } + repo.Status.IncrementRevisionVersion("go-clone") + } + me.repos.View.ScanRepositories() + me.Enable() + }) grid.NextRow() group2 := vbox.NewGroup("Debugger")