mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-26 00:59:11 -05:00
@@ -224,7 +224,14 @@ def _run_hooks(config, hooks, args, environ):
|
||||
'`pre-commit install`.',
|
||||
)
|
||||
output.write_line('All changes made by hooks:')
|
||||
subprocess.call(('git', '--no-pager', 'diff', '--no-ext-diff'))
|
||||
if args.color:
|
||||
subprocess.call((
|
||||
'git', '--no-pager', 'diff', '--no-ext-diff',
|
||||
'--color={}'.format(args.color),
|
||||
))
|
||||
else:
|
||||
subprocess.call(('git', '--no-pager', 'diff', '--no-ext-diff'))
|
||||
|
||||
return retval
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user