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

Function warnForActiveWipBranches

mob.go:712–725  ·  view source on GitHub ↗
(configuration config.Configuration, currentBaseBranch Branch)

Source from the content-addressed store, hash-verified

710}
711
712func warnForActiveWipBranches(configuration config.Configuration, currentBaseBranch Branch) {
713 if isMobProgramming(configuration) {
714 return
715 }
716
717 // TODO show all active wip branches, even non-qualified ones
718 existingWipBranches := getWipBranchesForBaseBranch(currentBaseBranch, configuration)
719 if len(existingWipBranches) > 0 && configuration.WipBranchQualifier == "" {
720 say.Warning("Creating a new wip branch even though preexisting wip branches have been detected.")
721 for _, wipBranch := range existingWipBranches {
722 say.WithPrefix(wipBranch, " - ")
723 }
724 }
725}
726
727func sayUntrackedFilesInfo() {
728 untrackedFiles := getUntrackedFiles()

Callers 1

startFunction · 0.85

Calls 4

WarningFunction · 0.92
WithPrefixFunction · 0.92
isMobProgrammingFunction · 0.85

Tested by

no test coverage detected