option to increment only changed repos
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
90ae6d0917
commit
0f48d99b43
|
@ -186,6 +186,26 @@ func globalDisplayOptions(box *gui.Node) {
|
||||||
repo.Status.IncrementMinorVersion("trying minor")
|
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()
|
grid.NextRow()
|
||||||
|
|
||||||
group2 := vbox.NewGroup("Debugger")
|
group2 := vbox.NewGroup("Debugger")
|
||||||
|
|
Loading…
Reference in New Issue