Skip to content

Commit

Permalink
Merge pull request #2590 from m-rsha/add-no-ext-diff
Browse files Browse the repository at this point in the history
Add `--no-ext-diff` to `git diff` call
  • Loading branch information
asottile committed Nov 11, 2022
2 parents 5009f57 + 4399c2d commit 1f59f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre_commit/git.py
Expand Up @@ -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)

Expand Down

0 comments on commit 1f59f4c

Please sign in to comment.