mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04: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:
commit
1f59f4cba8
1 changed files with 2 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ def get_staged_files(cwd: str | None = None) -> list[str]:
|
||||||
|
|
||||||
def intent_to_add_files() -> list[str]:
|
def intent_to_add_files() -> list[str]:
|
||||||
_, stdout, _ = cmd_output(
|
_, stdout, _ = cmd_output(
|
||||||
'git', 'diff', '--ignore-submodules', '--diff-filter=A',
|
'git', 'diff', '--no-ext-diff', '--ignore-submodules',
|
||||||
'--name-only', '-z',
|
'--diff-filter=A', '--name-only', '-z',
|
||||||
)
|
)
|
||||||
return zsplit(stdout)
|
return zsplit(stdout)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue