only consider forward diff in changed files

This commit is contained in:
vinay karanam
2016-05-25 14:44:59 +05:30
parent 6654fee5f9
commit 81d7efa7bb

View File

@@ -51,7 +51,7 @@ def _print_user_skipped(hook, write, args):
def get_changed_files(new, old):
return cmd_output(
'git', 'diff', '--name-only', '{0}..{1}'.format(old, new),
'git', 'diff', '--name-only', '{0}...{1}'.format(old, new),
)[1].splitlines()