Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
JoshTriplett
25 days ago
|
parent
|
context
|
favorite
| on:
Prek: A better, faster, drop-in pre-commit replace...
I think there's value in git hooks, but pre-commit is the wrong hook. This belongs in a hook that runs on attempted push, not on commit.
fortuitous-frog
25 days ago
|
next
[–]
There's a config option for that :)
https://prek.j178.dev/configuration/#default_install_hook_ty...
anttihaapala
25 days ago
|
prev
|
next
[–]
formatting should definitely be in pre-commit though, otherwise you'll destroy diffs.
Marsymars
24 days ago
|
prev
|
next
[–]
"pre-commit the tool" supports the pre-push hook (as well as the various other hooks).
esafak
25 days ago
|
prev
[–]
Run the light ones on commit, the heavy ones on push.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: