mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-28 19:19:21 -05:00
Merge pull request #2590 from m-rsha/add-no-ext-diff
Add `--no-ext-diff` to `git diff` call
This commit is contained in:
+2
-2
@@ -150,8 +150,8 @@ def get_staged_files(cwd: str | None = None) -> list[str]:
|
||||
|
||||
def intent_to_add_files() -> list[str]:
|
||||
_, stdout, _ = cmd_output(
|
||||
'git', 'diff', '--ignore-submodules', '--diff-filter=A',
|
||||
'--name-only', '-z',
|
||||
'git', 'diff', '--no-ext-diff', '--ignore-submodules',
|
||||
'--diff-filter=A', '--name-only', '-z',
|
||||
)
|
||||
return zsplit(stdout)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user