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

Function createRemoteBranch

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

Source from the content-addressed store, hash-verified

662}
663
664func createRemoteBranch(configuration config.Configuration, currentBaseBranch Branch) {
665 if !currentBaseBranch.hasRemoteBranch(configuration) && configuration.StartCreate {
666 git("push", configuration.RemoteName, currentBaseBranch.String(), "--set-upstream")
667 } else if currentBaseBranch.hasRemoteBranch(configuration) && configuration.StartCreate {
668 say.Info("Remote branch " + currentBaseBranch.remote(configuration).String() + " already exists")
669 }
670}
671
672func openLastModifiedFileIfPresent(configuration config.Configuration) {
673 if !configuration.IsOpenCommandGiven() {

Callers 1

startFunction · 0.85

Calls 5

InfoFunction · 0.92
gitFunction · 0.85
hasRemoteBranchMethod · 0.80
StringMethod · 0.80
remoteMethod · 0.80

Tested by

no test coverage detected