diff options
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() { |
