diff options
| author | Jeff Carr <[email protected]> | 2025-01-05 05:48:02 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-05 05:48:02 -0600 |
| commit | 2c7e15ccfacd065029b5de4360288d72815bc907 (patch) | |
| tree | 8db1d43ed8b134092e9c4cdd526d5ac284c2079d /doCommon.go | |
| parent | 79ec3ce469623e70bb8ee29218e0bb1aaae8c39a (diff) | |
check to make sure everything is on the devel branch
Diffstat (limited to 'doCommon.go')
| -rw-r--r-- | doCommon.go | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doCommon.go b/doCommon.go index e7ecb70..a085587 100644 --- a/doCommon.go +++ b/doCommon.go @@ -33,7 +33,7 @@ func doGitPull() { } -func doCheckDirty() { +func doCheckDirtyAndConfigSave() { now := time.Now() all := me.found.SortByFullPath() for all.Scan() { @@ -50,11 +50,22 @@ func doCheckDirty() { } } } - // doCobol() log.Info("dirty check took:", shell.FormatDuration(time.Since(now))) me.forge.SetConfigSave(configSave) } +func IsEverythingOnDevel() bool { + all := me.forge.Repos.SortByFullPath() + for all.Scan() { + repo := all.Next() + if repo.GetCurrentBranchName() != repo.GetDevelBranchName() { + log.Info(repo.GetFullPath(), repo.GetCurrentBranchName(), repo.GetDevelBranchName()) + return false + } + } + return true +} + func doGitReset() { all := me.found.SortByFullPath() for all.Scan() { |
