[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Pre-Commit hooks and Code Format checkers.

From: Eric Berry <elberry_at_gmail.com>
Date: 2007-11-30 17:57:28 CET

Hi all,
    I want to know if it's possible to insert a pre-commit hook that can
check the incoming code against a formatter. My company actually wants to
set it up to automatically format any code that comes in before it gets
committed, but I know that the pre-commit hook isn't supposed to change the
actual commit. From my understanding it's supposed to be more of a pass/fail
check. If the commit is "valid" (for however many reasons) then the commit
is allowed, otherwise it is denied.

Is this possible?

Thanks in advance for any help.

Learn from the past. Live in the present. Plan for the future.
My jEdit Blog: http://myjedit.blogspot.com/
Received on Fri Nov 30 17:57:55 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.