diff options
| author | Jeff Carr <[email protected]> | 2024-01-10 19:44:10 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-10 19:44:10 -0600 |
| commit | 5d21e2f6f8ba1b62a848c6b614e98cea530bc085 (patch) | |
| tree | c1d7fe3cb5a5b3d5161a74d1ad95d1b7f517a83b | |
| parent | 1c02e4d05fa5fb20ba3d38710da141f7d82d701f (diff) | |
cleaner again
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | update.go | 42 |
1 files changed, 25 insertions, 17 deletions
@@ -17,32 +17,39 @@ func (rs *RepoStatus) Update() { log.Log(WARN, "Update() START") duration := timeFunction(func () { // do things that are safe even if the git tree is dirty + log.Warn("path.Set()") rs.path.Set(rs.repopath) + log.Warn("getCurrentBranchName()") rs.getCurrentBranchName() + log.Warn("set window Title()") rs.window.Title(rs.repopath + " GO repo Details") + log.Warn("getCurrentBranchVersion()") rs.getCurrentBranchVersion() + log.Warn("getLastTagVersion()") rs.getLastTagVersion() + log.Warn("populateTags()") rs.populateTags() + log.Warn("checkDirty()") + rs.checkDirty() - if rs.checkDirty() { - if rs.dirtyLabel.Get() != "no" { - rs.DisableEverything() - return - } + if rs.dirtyLabel.Get() != "no" { + log.Warn("dirty label != no. actual value:", rs.dirtyLabel.Get()) + rs.DisableEverything() + return + } - // rs.checkDirty() this runs - log.Log(WARN, "") - log.Log(WARN, "checkoutBranch master") - rs.checkoutBranch("master") - log.Log(WARN, "") - log.Log(WARN, "checkoutBranch devel") - rs.checkoutBranch("devel") - log.Log(WARN, "") - log.Log(WARN, "checkoutBranch jcarr") - rs.checkoutBranch("jcarr") + // rs.checkDirty() this runs + log.Log(WARN, "") + log.Log(WARN, "checkoutBranch master") + rs.checkoutBranch("master") + log.Log(WARN, "") + log.Log(WARN, "checkoutBranch devel") + rs.checkoutBranch("devel") + log.Log(WARN, "") + log.Log(WARN, "checkoutBranch jcarr") + rs.checkoutBranch("jcarr") - rs.recommend() - } + rs.recommend() }) rs.setSpeed(duration) log.Log(WARN, "Update() END") @@ -67,6 +74,7 @@ func (rs *RepoStatus) setSpeed(duration time.Duration) { // disable all things besides Update() button func (rs *RepoStatus) DisableEverything() { + log.Warn("DisableEverything()") // choosing a major, minor or revision rs.major.Disable() |
