MCPcopy Create free account
hub / github.com/ezyang/ghstack / branch

Function branch

src/ghstack/submit.py:143–144  ·  view source on GitHub ↗
(username: str, ghnum: GhNumber, kind: BranchKind)

Source from the content-addressed store, hash-verified

141
142
143def branch(username: str, ghnum: GhNumber, kind: BranchKind) -> GitCommitHash:
144 return GitCommitHash("gh/{}/{}/{}".format(username, ghnum, kind))
145
146
147def branch_base(username: str, ghnum: GhNumber) -> GitCommitHash:

Callers 7

branch_baseFunction · 0.85
branch_headFunction · 0.85
branch_origFunction · 0.85
branch_nextFunction · 0.85
process_commitMethod · 0.85
_resolve_gh_branchMethod · 0.85
push_updatesMethod · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected