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

Re: RFE: diff -w

From: Peter Valdemar Mørch <swp5jhu02_at_sneakemail.com>
Date: 2004-11-06 23:15:27 CET

Kenneth Porter shiva-at-sewingwitch.com |Lists| wrote:
> If I re-indent a source file for readability, I generally don't want to
> see that when looking at what I changed with "svn diff". It would be
> nice if I could optionally get the equivalent of the -w option (ignore
> white space differences) of Gnu diff.

That is odd... It seems svn behaves differently on Linux than under
Windows. On both FC2, SuSE and debian Linux distros, svn diff defaults
to ignoring whitespace, but on windows it defaults to flagging whitespace.

svn diff --diff-cmd diff -x -w <file>
is your friend on Windows to skip whitespace

and

svn diff --diff-cmd diff <file>
is your friend on Linux to show whitespace diffs

Peter

-- 
Peter Valdemar Mørch
http://www.morch.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Nov 6 23:15:56 2004

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.