summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
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")
-}
-*/