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.
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
|
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.