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

Function showActiveMobSessions

status.go:21–32  ·  view source on GitHub ↗
(configuration config.Configuration, currentBaseBranch Branch)

Source from the content-addressed store, hash-verified

19}
20
21func showActiveMobSessions(configuration config.Configuration, currentBaseBranch Branch) {
22 existingWipBranches := getWipBranchesForBaseBranch(currentBaseBranch, configuration)
23 if len(existingWipBranches) > 0 {
24 say.Info("remote wip branches detected:")
25 for _, wipBranch := range existingWipBranches {
26 time := silentgit("log", "-1", "--pretty=format:(%ar)", wipBranch)
27 say.WithPrefix(wipBranch+" "+time, " - ")
28 }
29 } else {
30 say.Info("no remote wip branches detected!")
31 }
32}

Callers 1

statusFunction · 0.85

Calls 4

InfoFunction · 0.92
WithPrefixFunction · 0.92
silentgitFunction · 0.85

Tested by

no test coverage detected