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

Re: Strip trailing whitespace

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Tue, 6 Oct 2009 11:56:32 +0100

2009/10/6 Olaf van der Spek <olafvdspek_at_gmail.com>:
> Hi,
> Would it be possible to strip trailing whitespace/lines on commits?
> It's handy as some editors do and some don't strip this and it results
> in unnecessary differences.
> It could be based on both a setting and the presence of svn:eol-style.

That would have to be supported in the subversion library, like
svn:eol-style, and I don't think that will ever happen. It is not the
job of a version control system to change your files! The only reason
svn:eol-style is there is for multi-platform support.

You could add your own trailing space stripper as part of a pre-commit
or start-commit hook. The problem is that in changing the files it may
also change the modified status one way or the other.


:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-10-06 12:56:37 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.