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

Method hasRemoteBranch

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

Source from the content-addressed store, hash-verified

109}
110
111func (branch Branch) hasRemoteBranch(configuration config.Configuration) bool {
112 remoteBranches := gitRemoteBranches()
113 remoteBranch := branch.remote(configuration).Name
114 say.Debug("Remote Branches: " + strings.Join(remoteBranches, "\n"))
115 say.Debug("Remote Branch: " + remoteBranch)
116
117 for i := 0; i < len(remoteBranches); i++ {
118 if remoteBranches[i] == remoteBranch {
119 return true
120 }
121 }
122
123 return false
124}
125
126func (branch Branch) hasLocalBranch() bool {
127 localBranches := gitBranches()

Callers 7

isOrphanWipBranchMethod · 0.95
assertMobSessionBranchesFunction · 0.80
deleteRemoteWipBranchFunction · 0.80
startFunction · 0.80
createRemoteBranchFunction · 0.80
doneFunction · 0.80

Calls 3

remoteMethod · 0.95
DebugFunction · 0.92
gitRemoteBranchesFunction · 0.85

Tested by 2

assertMobSessionBranchesFunction · 0.64