MCPcopy Create free account
hub / github.com/ipython/ipython / get_current_branch

Function get_current_branch

tools/backport_pr.py:54–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 yield os.path.join(dirname, fname)
53
54def get_current_branch():
55 branches = check_output(['git', 'branch'])
56 for branch in branches.splitlines():
57 if branch.startswith(b'*'):
58 return branch[1:].strip().decode('utf-8')
59
60def backport_pr(branch, num, project='ipython/ipython'):
61 current_branch = get_current_branch()

Callers 1

backport_prFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected