Re: Revert only whitespace changes

2011-06-14 Thread Daniel Shahaf
Daniel Shahaf wrote on Wed, Jun 15, 2011 at 02:07:00 +0300: > > 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

Re: Revert only whitespace changes

2011-06-14 Thread Daniel Shahaf
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

Re: Revert only whitespace changes

2011-06-14 Thread Stefan Sperling
On Tue, Jun 14, 2011 at 04:32:50PM +0200, Markus Schaber wrote: > Hi, Konstantin, > > A good policy is to educate the developers to commit whitespace-only > > changes in a separate commit. > > I know that. And I'm searching for a tool allowing me to do just that. > > Especially when you make a se

Re: Revert only whitespace changes

2011-06-14 Thread Konstantin Kolinko
2011/6/14 Markus Schaber : > > While Subversion and TortoiseSVN offer the possibility to ignore those > white space changes when diffing the files, a commit still includes > those changes, and thus the diff in the SVN history is cluttered, which > causes problems for reviewers. > Maybe you can fin