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

Method run

git-p4.py:4516–4531  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

4514 self.verbose = False
4515
4516 def run(self, args):
4517 if originP4BranchesExist():
4518 createOrUpdateBranchesFromOrigin()
4519
4520 for line in read_pipe_lines(["git", "rev-parse", "--symbolic", "--remotes"]):
4521 line = line.strip()
4522
4523 if not line.startswith('p4/') or line == "p4/HEAD":
4524 continue
4525 branch = line
4526
4527 log = extractLogMessageFromGitCommit("refs/remotes/%s" % branch)
4528 settings = extractSettingsGitLog(log)
4529
4530 print("%s <= %s (%s)" % (branch, ",".join(settings["depot-paths"]), settings["change"]))
4531 return True
4532
4533
4534class HelpFormatter(optparse.IndentedHelpFormatter):

Callers

nothing calls this directly

Calls 5

originP4BranchesExistFunction · 0.85
read_pipe_linesFunction · 0.85
extractSettingsGitLogFunction · 0.85

Tested by

no test coverage detected