summaryrefslogtreecommitdiff
path: root/revert.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-07 19:29:46 -0600
committerJeff Carr <[email protected]>2025-01-07 19:29:46 -0600
commitf53f1256f184c0cddb565eebb7ecb2f8f1e079d3 (patch)
tree9e3320add93eb2ed3d8ff008d261be0e9d697ae8 /revert.go
parent4efbead37c944b89a63b0c8d89325541d0392c3f (diff)
more rm old code
Diffstat (limited to 'revert.go')
-rw-r--r--revert.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/revert.go b/revert.go
deleted file mode 100644
index 5a080e9..0000000
--- a/revert.go
+++ /dev/null
@@ -1,41 +0,0 @@
-package repostatus
-
-// reverts master to devel
-// used in the unwind process of making GUI releases
-/*
-func (rs *RepoStatus) RevertMasterToDevel() bool {
- if rs.CheckDirty() {
- log.Info("sorry, it's still dirty")
- return false
- }
-
- curName := rs.GetCurrentBranchName()
- dName := rs.GetDevelBranchName()
- mName := rs.GetMasterBranchName()
- if curName != mName {
- log.Info("repo is not working from main branch", curName, "!=", mName)
- return false
- }
-
- log.Info("reset master to devel", curName, rs.String())
-
- var all [][]string
- all = append(all, []string{"git", "checkout", dName}) // switch to the devel branch
- all = append(all, []string{"git", "branch", "-D", mName})
- all = append(all, []string{"git", "branch", mName}) // make a master branch based on devel
- all = append(all, []string{"git", "checkout", mName})
- all = append(all, []string{"git", "push", "--set-upstream", "--force", "origin", mName})
-
- // don't do anything with tags here
- // all = append(all, []string{"git", "tag", "--delete", release.version.String()})
- // all = append(all, []string{"git", "push", "--delete", "origin", release.version.String()})
-
- if rs.DoAll(all) {
- log.Info("EVERYTHING OK. RERELEASED", rs.String())
- return true
- }
-
- log.Info("SOMETHING FAILED")
- return false
-}
-*/