diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 19:11:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 19:11:51 -0600 |
| commit | a72e9ce5f4062fb78c82f1380d7a86ee4cc47294 (patch) | |
| tree | 546112fe224fbaec50666a61d3ccab102081acc4 /ideas/revert.go | |
| parent | 3ab156a9c477f4d839e1384d424856519390b797 (diff) | |
NEVER LEAVE JUNK IN GO REPOS EVERv0.22.92v0.22.91v0.22.90v0.22.89v0.22.88v0.22.87v0.22.86v0.22.85v0.22.84v0.22.83v0.22.82v0.22.81v0.22.80v0.22.79v0.22.78v0.22.77v0.22.76v0.22.75v0.22.74v0.22.73v0.22.72v0.22.71v0.22.70v0.22.69v0.22.68v0.22.67v0.22.66v0.22.65v0.22.64v0.22.63v0.22.62v0.22.61v0.22.60v0.22.59
Diffstat (limited to 'ideas/revert.go')
| -rw-r--r-- | ideas/revert.go | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/ideas/revert.go b/ideas/revert.go deleted file mode 100644 index 5a080e9..0000000 --- a/ideas/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 -} -*/ |
