[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: Olaf van der Spek <olafvdspek_at_gmail.com>
Date: Tue, 6 Oct 2009 16:53:50 +0200

On Tue, Oct 6, 2009 at 4:27 PM, Julian Foad <julianfoad_at_btopenworld.com> wrote:
> Sure, but diff and merge tools can overcome these problems. Most diff
> tools (including Subversion's built-in diff) and good merge tools have
> an "ignore changes in white space" option.

A file may still show up as modified if only spaces have changed.

> And all sorts of other edits fall into this category too: reformatting
> paragraphs, re-indenting code, updating the "last-printed-time" metadata
> in a word-processor file, etc. It's a large class of changes. If we

True, although stripping trailing whitespace sounds like a much
simpler and more common issue.

> really want Subversion to normalize the user's files in these respects,
> it should be by some kind of general architecture for supporting all
> kinds of formatting, and not by adding special code to handle one
> particular kind of formatting.

Obviously I wouldn't mind such a general architecture.

Olaf

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2404125
Received on 2009-10-06 16:54:02 CEST

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