MCPcopy
hub / github.com/pre-commit/pre-commit / _get_commit_output

Function _get_commit_output

tests/commands/install_uninstall_test.py:124–132  ·  view source on GitHub ↗
(tempdir_factory, touch_file='foo', **kwargs)

Source from the content-addressed store, hash-verified

122
123
124def _get_commit_output(tempdir_factory, touch_file='foo', **kwargs):
125 open(touch_file, 'a').close()
126 cmd_output('git', 'add', touch_file)
127 return git_commit(
128 fn=cmd_output_mocked_pre_commit_home,
129 check=False,
130 tempdir_factory=tempdir_factory,
131 **kwargs,
132 )
133
134
135# osx does this different :(

Calls 2

cmd_outputFunction · 0.90
git_commitFunction · 0.90

Tested by

no test coverage detected