[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ignoring whitespace in rdiff

From: Mark D. Baushke
Subject: Re: ignoring whitespace in rdiff
Date: Tue, 26 Oct 2004 09:59:01 -0700

Hash: SHA1

Clendenan, Dave <address@hidden> writes:

> cvs diff takes '-bw' to ignore whitespace.  cvs rdiff (at least in the
> versions I have) doesn't have an option for this.  
> Can someone please explain this to me?

See below.

> Does the 'feature release' stream have this feature?


> We're developing on windows, and some of our developers keep switching
> linefeed types, which makes rdiff a bit useless. I may have to resort
> to a linebreak-conversion on checkin, but I don't like the idea of
> automated chenges to entire files like that...

Line endings should be properly handled by the client already.

The general topic of additional flags to 'cvs rdiff' (aka 'cvs patch')
came up here:

and Larry wrote:

|  -- Additional comments from Larry Jones Tue May 7 15:01:06 -0700 2002 --
| "cvs diff" supports nearly all of the GNU diff options but "cvs patch"
| (aka "rdiff") hardly supports any of them because it was designed to
| make patches, not to be a generic diff command.  Given that, I don't
| see any justification for adding "-p" to the miniscule set of options
| that "cvs patch" accepts unless we ignore the original design and make
| it into a generic diff command, which is problematic because some of
| the existing patch options conflict with diff options.

and Derek wrote:

|  -- Additional comments from Derek Price Mon May 20 07:45:29 -0700 2002 --
| Except for breaking backwards compatibility, I'm not sure I agree with
| Larry's argument.  Isn't a straight `diff' the traditional way of
| creating patches when CVS isn't involved?  Also, making `cvs rdiff' a
| remote version of `cvs diff' seems to make sense since that seems to
| be consistent with the operation of the rest of the CVS commands.
| Closing this anyhow until someone with the time to work on it comes
| along and reopens it.

Issue 176 ( )
also requests the -p option for rdiff.

Your request to add -b (ignore changes in amount of white space) and -w
(ignore horizontal white space when comparing lines) are just the latest
in the debate of how to deal with passing all of the possible diff options
to the rdiff subsystem in a sane manner given that we have many options
("D:RV:cflr:stu") to rdiff and many of them conflict with 'diff'

        -- Mark
Version: GnuPG v1.2.3 (FreeBSD)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]