[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: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Thu, 8 Oct 2009 09:01:54 +1000

On Wed, Oct 7, 2009 at 7:08 PM, Olaf van der Spek <olafvdspek_at_gmail.com>wrote:

> On Wed, Oct 7, 2009 at 10:25 AM, Daniel Becroft <djcbecroft_at_gmail.com>
> wrote:
> > On Wed, Oct 7, 2009 at 5:18 PM, Olaf van der Spek <olafvdspek_at_gmail.com>
> > wrote:
> >>
> >> On Wed, Oct 7, 2009 at 1:17 AM, Daniel Becroft <djcbecroft_at_gmail.com>
> >> wrote:
> >> > No, but there are some plugins and macros to achieve the same thing. A
> >> > simple google search revealed the following:
> >> >
> >> >
> >> >
> http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/c5ba33f7-2187-4953-8dad-691c96948263
> >> > http://msdn.microsoft.com/en-us/magazine/cc301447.aspx
> >>
> >> I'm sure there are, but that's far too much manual labour.
> >>
> >
> > Seriously? It took me less than 5 minutes to do the steps from that first
> > post, *and* add the macro as a new toolbar button.
>
> Toolbar button? So I also have to click on a button every time I save
> a document?
>

Or you can bind it to a shortcut key, or include the "Save" action as a part
of the macro.

> Stuff like this should be done automatically without manual steps.
>

Agreed, but not by the version control system. It should be provided by the
editor that you use. It is not the version control systems job to modify
your local copy and then commit. The VCS should take the file and commit it,
exactly as it sits on disk. Any other formatting that needs to be done
should be done outside of it.

> Also, I'd have to do this in every editor I use on every computer I
> use. Not a good idea.
>

Or write a script that strips all trailing whitespace out of all the files
you need, then commit?

Cheers,
Daniel B.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2404734

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-10-08 03:20:57 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.