[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 15:57:31 +0200

On Tue, Oct 6, 2009 at 3:37 PM, Julian Foad <julianfoad_at_btopenworld.com> wrote:
> It is possible to write a pre-commit hook to CHECK for this and reject
> the commit, but I think you want to automatically EDIT the source files.
> This would have to be done on the client side. Although Subversion

I'm indeed looking for an automatic solution. Why would this have to
be done client-side?

> clients support changing the End-Of-Line style, further modifications
> such as removing white-space are really beyond the scope of a
> version-control tool and would best be handled by other means, such as
> encouraging users to configure their editors to display or remove such
> white-space (see <http://vim.wikia.com/wiki/Remove_unwanted_spaces> for
> example), provide a "clean the source files" function in your project's
> Makefile (if applicable), etc.

I prefer an automatic solution. Also, not all editors support the
required options.

Olaf

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2404091
Received on 2009-10-06 15:57:41 CEST

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