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

Function isMobProgramming

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

Source from the content-addressed store, hash-verified

1062}
1063
1064func isMobProgramming(configuration config.Configuration) bool {
1065 currentBranch := gitCurrentBranch()
1066 _, currentWipBranch := determineBranches(currentBranch, gitBranches(), configuration)
1067 say.Debug("current branch " + currentBranch.String() + " and currentWipBranch " + currentWipBranch.String())
1068 return currentWipBranch == currentBranch
1069}
1070
1071func gitBranches() []string {
1072 return strings.Split(silentgit("branch", "--format=%(refname:short)"), "\n")

Callers 6

statusFunction · 0.85
executeFunction · 0.85
startFunction · 0.85
warnForActiveWipBranchesFunction · 0.85
nextFunction · 0.85
doneFunction · 0.85

Calls 5

DebugFunction · 0.92
gitCurrentBranchFunction · 0.85
determineBranchesFunction · 0.85
gitBranchesFunction · 0.85
StringMethod · 0.80

Tested by

no test coverage detected