summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-29 16:18:32 -0600
committerJeff Carr <[email protected]>2025-01-29 16:18:32 -0600
commit2395a4466e9c08112372c480b30ac0823eeeb549 (patch)
treeae008b2eadf649efd3950307f3896af891f84c33 /update.go
parent2b2de94eff3ec37566665a22804c58c1ce764665 (diff)
delete old code. start refactor to protobufv0.22.39v0.22.38v0.22.37
Diffstat (limited to 'update.go')
-rw-r--r--update.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/update.go b/update.go
index 8774635..56ddd8c 100644
--- a/update.go
+++ b/update.go
@@ -47,38 +47,3 @@ func (rs *RepoStatus) CheckGitState() string {
rs.gitState.SetText(state)
return state
}
-
-/*
-func (rs *RepoStatus) setState() {
- pb := rs.pb
- rs.changed = false
- if pb.CheckDirty() {
- log.Log(REPO, "CheckDirty() true")
- rs.gitState.SetText("dirty")
- return
- }
- if pb.GetUserVersion() != pb.GetDevelVersion() {
- rs.gitState.SetText("merge to devel")
- return
- }
- if pb.GetDevelVersion() != pb.GetMasterVersion() {
- rs.gitState.SetText("merge to main")
- return
- }
- if pb.GetLastTag() != pb.GetMasterVersion() {
- rs.gitState.SetText("unchanged")
- return
- }
-
- if pb.CheckBranches() {
- log.Log(REPO, "Branches are Perfect")
- rs.gitState.SetText("PERFECT")
- return
- }
- log.Log(REPO, "FIND THIS IN REPO STATUS Branches are not Perfect")
- log.Log(REPO, "FIND THIS IN REPO STATUS Branches are not Perfect")
- log.Log(REPO, "FIND THIS IN REPO STATUS Branches are not Perfect")
- log.Log(REPO, "FIND THIS IN REPO STATUS Branches are not Perfect")
- rs.gitState.SetText("unknown branches")
-}
-*/