Move most of the actual hook script into pre-commit hook-impl

This commit is contained in:
Anthony Sottile 2020-01-20 13:32:33 -08:00
parent 93152218a7
commit 95b8d71bd9
10 changed files with 471 additions and 201 deletions

View file

@ -81,8 +81,8 @@ def test_adjust_args_try_repo_repo_relative(in_git_dir):
FNS = (
'autoupdate', 'clean', 'gc', 'install', 'install_hooks', 'migrate_config',
'run', 'sample_config', 'uninstall',
'autoupdate', 'clean', 'gc', 'hook_impl', 'install', 'install_hooks',
'migrate_config', 'run', 'sample_config', 'uninstall',
)
CMDS = tuple(fn.replace('_', '-') for fn in FNS)