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

Function intent_to_add_files

pre_commit/git.py:146–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144
145
146def intent_to_add_files() -> list[str]:
147 _, stdout, _ = cmd_output(
148 'git', 'diff', '--no-ext-diff', '--ignore-submodules',
149 '--diff-filter=A', '--name-only', '-z',
150 )
151 return zsplit(stdout)
152
153
154def get_all_files() -> list[str]:

Callers

nothing calls this directly

Calls 2

cmd_outputFunction · 0.90
zsplitFunction · 0.85

Tested by

no test coverage detected