zlacker

[parent] [thread] 4 comments
1. JoshTr+(OP)[view] [source] 2026-02-03 17:32:14
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.
replies(4): >>esafak+n1 >>fortui+F1 >>anttih+1b >>Marsym+MW
2. esafak+n1[view] [source] 2026-02-03 17:36:39
>>JoshTr+(OP)
Run the light ones on commit, the heavy ones on push.
3. fortui+F1[view] [source] 2026-02-03 17:38:10
>>JoshTr+(OP)
There's a config option for that :) https://prek.j178.dev/configuration/#default_install_hook_ty...
4. anttih+1b[view] [source] 2026-02-03 18:12:23
>>JoshTr+(OP)
formatting should definitely be in pre-commit though, otherwise you'll destroy diffs.
5. Marsym+MW[view] [source] 2026-02-03 21:42:29
>>JoshTr+(OP)
"pre-commit the tool" supports the pre-push hook (as well as the various other hooks).
[go to top]