mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Make more readable --from-ref / --to-ref aliases for --source / --origin
This commit is contained in:
parent
566f1afcd4
commit
d35b00352f
8 changed files with 72 additions and 61 deletions
|
|
@ -129,7 +129,7 @@ def get_all_files() -> List[str]:
|
|||
return zsplit(cmd_output('git', 'ls-files', '-z')[1])
|
||||
|
||||
|
||||
def get_changed_files(new: str, old: str) -> List[str]:
|
||||
def get_changed_files(old: str, new: str) -> List[str]:
|
||||
return zsplit(
|
||||
cmd_output(
|
||||
'git', 'diff', '--name-only', '--no-ext-diff', '-z',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue