Does git support 'hooks' like SVN does? Here at work we have some very spiffy SVN hooks that don't let us commit code if it fails perltidy, contains tabs, trailing whitespace, long lines, etc. It can be overridden by the comitter, but often it catches things we didn't actually mean to commit. Especially whitespace problems are easy to miss.

-Jared

Hanno Hecker wrote:
On Fri, 20 Feb 2009 10:21:22 -0600
Jared Johnson <jar...@nmgi.com> wrote:

The attached diff should fix it for you. I'll commit later if nobody
complains.
It appears this still hasn't been applied. I just applied it myself and it works for me; is there anything stopping this from being committed?
No, I'm running this on one machine myself without problems.

Also note that you might want to wipe out the tab that's in the midst of all those non-tab indents while you're at it :)
We should run perltidy now and write a .pod what our preferred coding
styles are. (e.g. running perltidy / podtidy before any commit)

        Hanno

Reply via email to