(configuration config.Configuration)
| 1062 | } |
| 1063 | |
| 1064 | func 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 | |
| 1071 | func gitBranches() []string { |
| 1072 | return strings.Split(silentgit("branch", "--format=%(refname:short)"), "\n") |
no test coverage detected