MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / startNewMobSession

Function startNewMobSession

mob.go:778–784  ·  view source on GitHub ↗
(configuration config.Configuration)

Source from the content-addressed store, hash-verified

776}
777
778func startNewMobSession(configuration config.Configuration) {
779 currentBaseBranch, currentWipBranch := determineBranches(gitCurrentBranch(), gitBranches(), configuration)
780
781 say.Info("starting new session from " + currentBaseBranch.remote(configuration).String())
782 git("checkout", "-B", currentWipBranch.Name, currentBaseBranch.remote(configuration).Name)
783 gitWithoutEmptyStrings(append(gitPushArgs(configuration), gitHooksOption(configuration), "--set-upstream", configuration.RemoteName, currentWipBranch.Name+":"+currentWipBranch.Name)...)
784}
785
786func gitPushArgs(c config.Configuration) []string {
787 pushArgs := []string{"push"}

Callers 1

startFunction · 0.85

Calls 10

InfoFunction · 0.92
determineBranchesFunction · 0.85
gitCurrentBranchFunction · 0.85
gitBranchesFunction · 0.85
gitFunction · 0.85
gitWithoutEmptyStringsFunction · 0.85
gitPushArgsFunction · 0.85
gitHooksOptionFunction · 0.85
StringMethod · 0.80
remoteMethod · 0.80

Tested by

no test coverage detected