Hacker News new | ask | show | jobs
by sheer_horror 3522 days ago
They include scripts to check code quality. Perhaps those should be set up with a pre-commit git hook to ensure they get used.
1 comments

Is there a way to set a pre commit git hook in a project's source code? So that the same hook only runs on that project and not on every project using git.
Typically you add files with the scripts and a Malefile or anything similar to initialize and move those files around.

So installation instructions become: 1. git clone 2. cd 3. make [init]

Note that it works best to have that install script create symbolic links for the git hooks rather than copy, so that they can be updated without having to rerun the install script.