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

RE: Formating C/C++ code before commit with indent

From: Shatzer, Larry <Larry.Shatzer_at_MIROtechnologies.com>
Date: 2005-06-22 22:22:08 CEST

Make it part of the build/test scripts and process, and then have a hook
reject any file that does not already have the format applied.

-----Original Message-----
From: Dan Shookowsky [mailto:dshookowsky@gmail.com]
Sent: Wednesday, June 22, 2005 12:36 PM
To: users@subversion.tigris.org; tpd.madera@telefonica.com.br
Subject: Re: Formating C/C++ code before commit with indent

I have a goofy idea. Perhaps you could author and distribute an
alternative script that automatically executes indent prior to calling
svn commit. The downside is the deployment of the script (and
updates) as well as trusting developers to execute it instead of svn
commit directly.

On the upside, you don't have to worry about the working copy getting
out of sync with the repository.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 22 22:30:24 2005

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.