mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-02 10:56:52 +00:00
Reformatted --diff-filter git argument
This makes the command compatible with older versions of git.
This commit is contained in:
parent
0ff8620e03
commit
a23c58298c
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue