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

Function removePrefix

mob.go:167–172  ·  view source on GitHub ↗
(branch string, prefix string)

Source from the content-addressed store, hash-verified

165}
166
167func removePrefix(branch string, prefix string) string {
168 if !strings.HasPrefix(branch, prefix) {
169 return branch
170 }
171 return branch[len(prefix):]
172}
173
174func (branch Branch) removeWipQualifier(localBranches []string, configuration config.Configuration) Branch {
175 for !branch.exists(localBranches) && branch.hasWipBranchQualifierSeparator(configuration) {

Callers 2

getMobTimerRoomFunction · 0.85
removeWipPrefixMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected