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

Function commit

pre_commit/git.py:196–202  ·  view source on GitHub ↗
(repo: str = '.')

Source from the content-addressed store, hash-verified

194
195
196def commit(repo: str = '.') -> None:
197 env = no_git_env()
198 name, email = 'pre-commit', 'asottile+pre-commit@umich.edu'
199 env['GIT_AUTHOR_NAME'] = env['GIT_COMMITTER_NAME'] = name
200 env['GIT_AUTHOR_EMAIL'] = env['GIT_COMMITTER_EMAIL'] = email
201 cmd = ('git', 'commit', '--no-edit', '--no-gpg-sign', '-n', '-minit')
202 cmd_output_b(*cmd, cwd=repo, env=env)
203
204
205def git_path(name: str, repo: str = '.') -> str:

Callers

nothing calls this directly

Calls 2

cmd_output_bFunction · 0.90
no_git_envFunction · 0.85

Tested by

no test coverage detected