subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: Revert only whitespace changes
Date Tue, 14 Jun 2011 23:07:00 GMT
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.

Mime
View raw message