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

wrapper to svn editor for log message clean-up (was: Prevent accidental commits)

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: Wed, 18 Jun 2008 15:10:56 +0200

On 2008-06-16 13:57:14 +0200, Vincent Lefevre wrote:
> You can also configure your editor to remove the "-- This line and..."
> line and any whitespace before it automatically. If your editor cannot
> do this, you can write a simple wrapper that would do it after executing
> the editor, and modify your config file (or set up the SVN_EDITOR
> environment variable) to execute the wrapper. (I already do something
> like that for Mutt.)

I've attached a wrapper I've written. It removes trailing whitespace
(i.e. spaces and tabs at the end of lines) and trailing newlines from
log messages.

So, no need to remove the

  --This line, and those below, will be ignored--

line and following text any longer.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org

Received on 2008-06-18 15:11:31 CEST

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.