(configuration config.Configuration)
| 764 | } |
| 765 | |
| 766 | func startJoinMobSession(configuration config.Configuration) { |
| 767 | baseBranch, currentWipBranch := determineBranches(gitCurrentBranch(), gitBranches(), configuration) |
| 768 | |
| 769 | say.Info("joining existing session from " + currentWipBranch.remote(configuration).String()) |
| 770 | if currentWipBranch.hasLocalBranch() && doBranchesDiverge(baseBranch.remote(configuration).Name, currentWipBranch.Name) { |
| 771 | say.Warning("Careful, your wip branch (" + currentWipBranch.Name + ") diverges from your main branch (" + baseBranch.remote(configuration).Name + ") !") |
| 772 | } |
| 773 | |
| 774 | git("checkout", "-B", currentWipBranch.Name, currentWipBranch.remote(configuration).Name) |
| 775 | git("branch", "--set-upstream-to="+currentWipBranch.remote(configuration).Name, currentWipBranch.Name) |
| 776 | } |
| 777 | |
| 778 | func startNewMobSession(configuration config.Configuration) { |
| 779 | currentBaseBranch, currentWipBranch := determineBranches(gitCurrentBranch(), gitBranches(), configuration) |
no test coverage detected