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

Re: svn diff and white space

From: Brian Lalor <blalor_at_bravo5.org>
Date: 2005-01-06 19:43:59 CET

On Jan 6, 2005, at 1:00 PM, David Ripton wrote:

> On 2005.01.06 12:33:32 +0000, Martin Fuchs wrote:
>> is there a way to ignore white space in the "svn diff" command similar
>> to the CVS command "cvs diff -wb" ?
>
> Not built-in. But svn diff lets you use an external diff program.

I use the following in ~/.subversion/config
        [helpers]
        diff-cmd = /path/to/mydiff

and mydiff contains:
        #!/bin/bash
        diff=/usr/bin/diff
        args="-wd"
        
        exec ${diff} ${args} "$@"

the "-wd" args tell diff to ignore whitespace when comparing files and
also to produce a smaller set of changes. This makes the diff output
more compact and easier to read, especially when I go through a file
and change tabs to spaces. :-)

-- 
    __   ____
   / /  / __/ Brian Lalor
  / _ \/__ \  blalor@bravo5.org
/_.__/____/  http://bravo5.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 6 19:45:48 2005

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.