diff options
| author | Jeff Carr <[email protected]> | 2024-02-23 07:25:57 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-23 07:25:57 -0600 |
| commit | 25681e479898616e44e8d60e46cc36a89a1e0ae7 (patch) | |
| tree | ecf5b185d3d0c4d4399cd27a59927f9872642003 /globalDisplayOptions.go | |
| parent | 3c1d0321013fc84b06d23ff27f6efb9e8cc9d7b1 (diff) | |
allow simple version increments
Diffstat (limited to 'globalDisplayOptions.go')
| -rw-r--r-- | globalDisplayOptions.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index 398cd7e..a985141 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -138,12 +138,20 @@ func globalDisplayOptions(box *gui.Node) { continue } + newversion := repo.Status.GetNewVersionTag() + if newversion == targetv { + log.Info(repo.GoPath(), "targetv has been increased already to", targetv) + continue + } + if masterv != targetv { - log.Info(repo.GoPath(), "master and target differ already", masterv, targetv) + log.Info(repo.GoPath(), "master and target differ", masterv, targetv) + repo.Status.IncrementVersion() + newversion := repo.Status.GetNewVersionTag() + repo.Status.SetTargetVersion(newversion) // already incremented continue } - repo.Status.IncrementVersion() } }) grid.NextRow() |
