zlacker

[return to "Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust"]
1. candid+6a[view] [source] 2026-02-03 17:10:22
>>fortui+(OP)
I struggle to see value with git hooks. They're an opt-in, easily opt-out way of calling shell scripts from my understanding--you can't force folks to run them, and they don't integrate/display nicely with CI/CD.

Why not just call a shell script directly? How would you use these with a CI/CD platform?

◧◩
2. JoshTr+bf[view] [source] 2026-02-03 17:32:14
>>candid+6a
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.
◧◩◪
3. Marsym+Xb1[view] [source] 2026-02-03 21:42:29
>>JoshTr+bf
"pre-commit the tool" supports the pre-push hook (as well as the various other hooks).
[go to top]