You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if a github issue is not the correct place for this question. We can close it out and take this somewhere else if need be.
From https://pre-commit.com/#pre-commit-run I learned about --show-diff-on-failure and it's something that I have been wanting in precommit since we started using it. It seems clear to me how to implement this when running precommit on the command line. But we use a .pre-commit-config.yaml and git hooks to run pre-commit and I couldn't find a way to turn this setting on.
Is it possible and I'm just missing something? Or is this technically a feature request?
The text was updated successfully, but these errors were encountered:
xdesai
changed the title
Question:
Question: Is it possible to add --show-diff-on-failure to git hook runs and not just CLI runs?
Nov 24, 2020
Fair enough!
I personally just like to see what black and other formatters change when it auto-formats my commits. I'll definitely give this hook a try though.
Thanks for the quick response. Appreciate it!
Sorry if a github issue is not the correct place for this question. We can close it out and take this somewhere else if need be.
From https://pre-commit.com/#pre-commit-run I learned about --show-diff-on-failure and it's something that I have been wanting in precommit since we started using it. It seems clear to me how to implement this when running precommit on the command line. But we use a .pre-commit-config.yaml and git hooks to run pre-commit and I couldn't find a way to turn this setting on.
Is it possible and I'm just missing something? Or is this technically a feature request?
The text was updated successfully, but these errors were encountered: