Consider lazy parameter in git.find_modified_files function

Refer to 867727f304/old/flake8/hooks.py (L34)
This commit is contained in:
Sergey 2016-08-14 22:19:03 +00:00
parent a09c9acaaf
commit 2eec5060e9

View file

@ -141,7 +141,7 @@ def make_temporary_directory_from(destination, directory):
def find_modified_files(lazy):
diff_index = piped_process(
['git', 'diff-index', '--cached', '--name-only',
['git', 'diff-index', '' if lazy else '--cached', '--name-only',
'--diff-filter=ACMRTUXB', 'HEAD'],
)