mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-13 07:41:19 +08:00
Merge pull request #90 from cchristous/master
Reformatted --diff-filter git argument
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