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

Re: Post Commit Code Formatting

From: Saulius Grazulis <grazulis_at_akl.lt>
Date: 2005-06-23 17:47:27 CEST

On Thursday 23 June 2005 17:55, Durfee, Bernard wrote:

> > > I see, so I should really be looking for a client side solution.
> ....
> >
> > What about client-side "pre-commit hooks"?
> ....
> The problem with any client side solution is that there are many
> clients.

Though there are many clients, there might be a standart way to call external
script/filer. Then everybody could use the same perl or python script to do
formatting, verification or whatever they like. These scripts would be
crafted to run on every platform on which developers happen to work. The
to-be-committed text would be piped thought them, or even better, committed
twice (before reformatting and after reformatting), as was suggested
previously in this list.

If this standartisation will not overburden clients and their developers, this
could be a nice thing to have.

(Although personally I am sceptical about automatic formatting on commit, and
automatic formatting in general... But that are my tastes, nothing more :)

Saulius Gražulis
Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)
tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366

  • application/pgp-signature attachment: stored
Received on Thu Jun 23 18:04:05 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.