-
Notifications
You must be signed in to change notification settings - Fork 10
Stash changes before running pre-commit #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This addresses dwyl#12, where broken code could pass through the pre-commit checks.
This addresses dwyl#12, where broken code could pass through the pre-commit checks.
Doesn't work with
|
Using
|
Can we close this issue now that #30 is merged? @finnhodgkin |
I've opened #32 with my comment so it can be tracked on its own. |
@ZooeyMiller I'm with @finnhodgkin now and will nudge 😊 |
Hey, just wanted to let you know that So if you want it to be backwards compatible, you might want to take another look at it. (Or if you're intending this only for newer versions, disregard this comment). |
@secondspass Thanks for letting us know! I'll add required git version to the docs as well. |
It's possible to sneak broken code through the pre-commit hook by making changes that are saved but not staged with git. Ideally the shell script should stash changes before running pre-commit and then pop the changes back after.
The text was updated successfully, but these errors were encountered: