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

Re: Revert only whitespace changes

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 15 Jun 2011 02:07:00 +0300

Markus Schaber wrote on Tue, Jun 14, 2011 at 11:47:48 +0200:
> Is there any tool which reverts all those whitespace-only changes,
> keeping only the "real" changes in the file?

svn diff foo > 1
svn revert foo
patch < ./1 || svn patch ./1

> Bonus points for a tool which keeps real indentation changes, and only
> discards tab<->space conversions which do not change the indentation
> level. :-)

vim -c 'source /dev/mind-reader' -c 'wq'

Not all OS's provide the necessary device file, though.
Received on 2011-06-15 01:07:46 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.