mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +00:00
Consider lazy parameter in git.find_modified_files function
Refer to 867727f304/old/flake8/hooks.py (L34)
This commit is contained in:
parent
a09c9acaaf
commit
2eec5060e9
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ def make_temporary_directory_from(destination, directory):
|
||||||
|
|
||||||
def find_modified_files(lazy):
|
def find_modified_files(lazy):
|
||||||
diff_index = piped_process(
|
diff_index = piped_process(
|
||||||
['git', 'diff-index', '--cached', '--name-only',
|
['git', 'diff-index', '' if lazy else '--cached', '--name-only',
|
||||||
'--diff-filter=ACMRTUXB', 'HEAD'],
|
'--diff-filter=ACMRTUXB', 'HEAD'],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue