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

altering files with a pre-commit hook?

From: Kenneth Riddile <kfriddile_at_yahoo.com>
Date: Sat, 20 Jun 2009 20:32:43 -0700 (PDT)

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 user could certainly be dangerous.
Thanks,Kenny Riddile


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-21 06:57:07 CEST

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