Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ get_all_files
Function
get_all_files
pre_commit/git.py:154–155 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
152
153
154
def
get_all_files() -> list[str]:
155
return
zsplit(cmd_output(
'git'
,
'ls-files'
,
'-z'
)[1])
156
157
158
def
get_changed_files(old: str, new: str) -> list[str]:
Callers
nothing calls this directly
Calls
2
cmd_output
Function · 0.90
zsplit
Function · 0.85
Tested by
no test coverage detected