| ▲ | sgarland 6 hours ago | |
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. | ||
| ▲ | jayd16 2 hours ago | parent | next [-] | |
That doesn't automate the maintenance of the hooks, doesn't handle cross branch differences, opens you up to all kinds of security holes because now it'll just do whatever the hook points to which is likely to be in the repo and not in some special higher scrutiny flow... All the push back to making this system good just ensures its as terrible as the nay-sayers fear. | ||
| ▲ | IshKebab 5 hours ago | parent | prev [-] | |
The pre-commit tool does way more than that. For example the clang-format hook will download and run a specific version of clang-format. | ||