Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ezyang/ghstack
/ split_header
Function
split_header
src/ghstack/git.py:78–79 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
76
77
78
def
split_header(s: str) -> List[CommitHeader]:
79
return
list(map(CommitHeader, s.split(
"\0"
)[:-1]))
80
81
82
def
convert_header(h: CommitHeader, github_url: str) -> ghstack.diff.Diff:
Callers
1
parse_header
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected