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

Re: Automatic pretty-print

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-08-18 19:51:39 CEST

On Wed, 2004-08-18 at 12:36, Zeus Gómez Marmolejo wrote:

> The ideal think could be at the pre-commit hook execute the pretty printer for
> all the .c source files so that in the repository the files all are well
> stored. Also it would be desirable to check C syntax so all files that are in
> the repository complile all. But I've seen the comments on the pre-commit
> template hook and explicitly reports that the script must not change the
> transaction. So is there a way to transform (pretty-print) the source files
> before committing them?

Yes, make your users do it. :-)

Have the pre-commit hook run some sort of 'validation' on the syntax of
incoming changes. If they're badly formatted, reject the commit. This
forces users to write nicely formatted code, or run a transformation
program before committing.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 18 19:54:01 2004

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.