finally rename back to 'Update'

This commit is contained in:
Jeff Carr 2024-02-20 14:45:43 -06:00
parent e1e81ab2bf
commit 2a19cd5eef
6 changed files with 17 additions and 10 deletions

View File

@ -36,7 +36,7 @@ func (rs *RepoStatus) makeBranchesBox(parent *gui.Node) {
} else {
log.Info("branch switched to", bname, "failed")
}
rs.UpdateNew()
rs.updateNew()
})
rs.targetBranch = newgrid.NewDropdown() // `progname:"TARGET"`

View File

@ -119,7 +119,7 @@ func (rs *RepoStatus) parseGoSum() (bool, error) {
return true, nil
}
func (rs *RepoStatus) GoConfig() map[string]string {
func (rs *RepoStatus) GoConfig() map[string]string {
return rs.goConfig
}
@ -157,3 +157,10 @@ func (rs *RepoStatus) MakeRedomod() (bool, error) {
// return the attempt to parse go.mod & go.sum
return rs.parseGoSum()
}
func (rs *RepoStatus) IsReleased() bool {
if rs.GetTargetVersion() == rs.GetCurrentVersion() {
return true
}
return false
}

View File

@ -22,11 +22,11 @@ func (rs *RepoStatus) MergeUserToDevel() bool {
if rs.DoAll(all) {
log.Log(WARN, "MergeUserToDevel() failed", rs.Path())
rs.UpdateNew()
rs.updateNew()
return true
}
// DoAll failed
rs.UpdateNew()
rs.updateNew()
return false
}
@ -44,11 +44,11 @@ func (rs *RepoStatus) MergeDevelToMaster() bool {
if rs.DoAll(all) {
log.Log(WARN, "MergeDevelToMaster() failed", rs.Path())
rs.UpdateNew()
rs.updateNew()
return true
}
// DoAll failed
rs.UpdateNew()
rs.updateNew()
return false
}

View File

@ -11,7 +11,7 @@ func (rs *RepoStatus) drawGitCommands(box *gui.Node) {
newgrid := rs.gitCommandsGroup.NewGrid("gridnuts", 0, 0)
newgrid.NewButton("Rescan Repo", func() {
rs.UpdateNew()
rs.Update()
})
newgrid.NewButton("CheckDirty()", func() {

View File

@ -25,7 +25,7 @@ type RepoStatus struct {
dirtyLabel *gadgets.OneLiner
readOnly *gadgets.OneLiner
gitState *gadgets.OneLiner
primitive *gadgets.OneLiner
primitive *gadgets.OneLiner
path *gadgets.OneLiner
goSrcPath *gadgets.OneLiner

View File

@ -23,7 +23,7 @@ func (rs *RepoStatus) gitBranchAll() {
// log.Log(WARN, "branch count =", i)
}
func (rs *RepoStatus) UpdateNew() {
func (rs *RepoStatus) updateNew() {
if !rs.Ready() {
log.Log(WARN, "can't update yet. ready is false")
log.Error(errors.New("Update() is not ready yet"))
@ -79,7 +79,7 @@ func (rs *RepoStatus) Update() {
}
log.Log(INFO, "Update() START")
duration := timeFunction(func() {
rs.UpdateNew()
rs.updateNew()
})
rs.setSpeed(duration)
log.Log(INFO, "Update() END")