mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
only consider forward diff in changed files
This commit is contained in:
parent
6654fee5f9
commit
81d7efa7bb
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ def _print_user_skipped(hook, write, args):
|
||||||
|
|
||||||
def get_changed_files(new, old):
|
def get_changed_files(new, old):
|
||||||
return cmd_output(
|
return cmd_output(
|
||||||
'git', 'diff', '--name-only', '{0}..{1}'.format(old, new),
|
'git', 'diff', '--name-only', '{0}...{1}'.format(old, new),
|
||||||
)[1].splitlines()
|
)[1].splitlines()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue