MCPcopy Create free account
hub / github.com/git/git / gitRefForBranch

Method gitRefForBranch

git-p4.py:3724–3731  ·  view source on GitHub ↗
(self, branch)

Source from the content-addressed store, hash-verified

3722 and ('keepRepoPath' in d['options']))
3723
3724 def gitRefForBranch(self, branch):
3725 if branch == "main":
3726 return self.refPrefix + "master"
3727
3728 if len(branch) <= 0:
3729 return branch
3730
3731 return self.refPrefix + self.projectName + branch
3732
3733 def gitCommitByP4Change(self, ref, change):
3734 if self.verbose:

Callers 2

importNewBranchMethod · 0.95
importChangesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected