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

Re: altering files with a pre-commit hook?

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Mon, 22 Jun 2009 18:50:57 +0400

Greetings, Kenneth Riddile!

> My team writes portable C/C++ that is all written with Visual Studio on
> Windows and is then used on both Windows and Unix.  GCC on Unix complains
> when files don't end in newlines while Visual Studio does not.  I already
> have a pre-commit hook that fails the commit when a source file doesn't end
> in a newline.
> I was wondering if someone knows of a way to automatically append a newline
> to those files at pre-commit time instead of forcing the user to go and add
> them manually.  I won't be surprised if this can't be done since the ability
> to transparently modify files committed by the

svn:eol-style property is not what you want?
Or you mentioning specifically the \n right before EOF?

 Andrey Repin (anrdaemon_at_freemail.ru) 22.06.2009, <18:49>
Sorry for my terrible english...
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-22 16:56:14 CEST

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