MCPcopy Create free account
hub / github.com/defold/defold / get_commit_branches

Function get_commit_branches

scripts/releasenotes_github_projectv2.py:317–324  ·  view source on GitHub ↗
(commit)

Source from the content-addressed store, hash-verified

315 return commits
316
317def get_commit_branches(commit):
318 # print("git branch --contains %s" % commit)
319 result = subprocess.run(["git", "branch", "--contains", commit], capture_output = True)
320 out = result.stdout.decode('utf-8')
321 if result.returncode == 0:
322 return [line.replace("*", "").strip() for line in out.splitlines()]
323 red(result.stderr.decode('utf-8'))
324 sys.exit(result.returncode)
325
326def check_commit_branches(commit, branches):
327 result = get_commit_branches(commit)

Callers 2

check_commit_branchesFunction · 0.85
check_issue_commitsFunction · 0.85

Calls 5

redFunction · 0.85
decodeMethod · 0.80
replaceMethod · 0.80
exitMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected