MCPcopy Create free account
hub / github.com/nodejs/node / GetBranches

Method GetBranches

deps/v8/tools/release/common_includes.py:242–248  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

240 return self.step.Git("tag").strip().splitlines()
241
242 def GetBranches(self):
243 # Get relevant remote branches, e.g. "branch-heads/3.25".
244 branches = filter(
245 lambda s: re.match(r"^branch\-heads/\d+\.\d+$", s),
246 self.step.GitRemotes())
247 # Remove 'branch-heads/' prefix.
248 return [b[13:] for b in branches]
249
250 def MainBranch(self):
251 return "main"

Callers

nothing calls this directly

Calls 3

GitRemotesMethod · 0.80
matchMethod · 0.65
filterFunction · 0.50

Tested by

no test coverage detected