[vtk-developers] New git commit hooks

David Gobbi david.gobbi at gmail.com
Fri Apr 23 14:53:40 EDT 2010


On Fri, Apr 23, 2010 at 12:33 PM, Brad King <brad.king at kitware.com> wrote:

> There are *two* sets of hooks involved:
>
> 1.) pre-commit & commit-msg
>    These are local, and must be put in .git/hooks by developers
>    http://www.vtk.org/Wiki/VTK/Git#Hooks
>    They happen at commit time.
>
> 2.) update
>    This is server-side.  It happens at push time.

I can happily say that I've had both hooks scream bloody murder at me,
and exactly when they should.  The local hooks told me to fix my
commit msg and to eliminate an RCS macro.  The update hook told me
that I'd set the wrong email address.

The rules look good to me.  And the more strict the local hooks are, the better.

   David



More information about the vtk-developers mailing list