MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / zsplit

Function zsplit

pre_commit/git.py:19–24  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

17
18
19def zsplit(s: str) -> list[str]:
20 s = s.strip('\0')
21 if s:
22 return s.split('\0')
23 else:
24 return []
25
26
27def no_git_env(_env: Mapping[str, str] | None = None) -> dict[str, str]:

Callers 5

get_conflicted_filesFunction · 0.85
get_staged_filesFunction · 0.85
intent_to_add_filesFunction · 0.85
get_all_filesFunction · 0.85
get_changed_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected