Skip to content

Commit

Permalink
Add --no-ext-diff to git diff call
Browse files Browse the repository at this point in the history
  • Loading branch information
m-rsha committed Nov 11, 2022
1 parent 5009f57 commit 4399c2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre_commit/git.py
Original file line number Diff line number Diff line change
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 4399c2d

Please sign in to comment.