| ▲ | Flimm 7 hours ago | |||||||||||||
To clear up any confusion, Git runs pre-commit hooks, and they can be written in any programming language. There's a completely separate and independent project that gave itself the confusing "pre-commit" name, and it is written in Python. This project aims to make it easier to configure pre-commit hooks. An alternative to it is "prek", written in Rust. | ||||||||||||||
| ▲ | sgarland 6 hours ago | parent [-] | |||||||||||||
Yes, and I hate it so, so much, and frankly don’t get the appeal. You want one-click installation of hooks? Bundle a shell script called run_first.sh that symlinks the hooks into .git. | ||||||||||||||
| ||||||||||||||