Add pass_filenames hook option

This option controls whether filenames are passed along as arguments to
the hook program.
This commit is contained in:
André Berti Sassi 2017-05-12 23:24:04 -03:00
parent 6025475afb
commit e774c09fac
4 changed files with 33 additions and 1 deletions

View file

@ -32,6 +32,7 @@ def test_manifest_contents(manifest):
'log_file': '',
'minimum_pre_commit_version': '0',
'name': 'Bash hook',
'pass_filenames': True,
'stages': [],
}]
@ -51,6 +52,7 @@ def test_hooks(manifest):
'log_file': '',
'minimum_pre_commit_version': '0',
'name': 'Bash hook',
'pass_filenames': True,
'stages': [],
}