mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-14 17:31:28 +08:00
Reformatted --diff-filter git argument
This makes the command compatible with older versions of git.
This commit is contained in:
@ -11,7 +11,7 @@ class CalledProcessError(RuntimeError):
|
||||
|
||||
def added_files():
|
||||
return set(cmd_output(
|
||||
'git', 'diff', '--staged', '--name-only', '--diff-filter', 'A',
|
||||
'git', 'diff', '--staged', '--name-only', '--diff-filter=A',
|
||||
).splitlines())
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user