Hacker News new | ask | show | jobs
by morenoh149 3524 days ago
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.
1 comments

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.