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

Method removeWipPrefix

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

Source from the content-addressed store, hash-verified

161}
162
163func (branch Branch) removeWipPrefix(configuration config.Configuration) Branch {
164 return newBranch(removePrefix(branch.Name, configuration.WipBranchPrefix))
165}
166
167func removePrefix(branch string, prefix string) string {
168 if !strings.HasPrefix(branch, prefix) {

Callers 3

getMobTimerRoomFunction · 0.80
TestRemoveWipPrefixFunction · 0.80
determineBranchesFunction · 0.80

Calls 2

newBranchFunction · 0.85
removePrefixFunction · 0.85

Tested by 1

TestRemoveWipPrefixFunction · 0.64