bug-cvs
[Top][All Lists]
Advanced

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

Re: cvs rdiff -B feature


From: Derek R. Price
Subject: Re: cvs rdiff -B feature
Date: Thu, 06 Sep 2001 17:10:11 -0700

karl@gnu.org wrote:

> Enclosed is a patch that implements a new option -B to rdiff.  This
> tells it not to output the contents of binary files, only the headers.
> This is useful because diffs of arbitrary binary files cannot be parsed
> by other tools.
>
> In particular, I wrote a tool to show the history of changes made on a
> branch since a given date, which uses rdiff.  (I'm happy to share the
> tool if anyone wants it.)  It needs -B to get the right output.
>
> It's also necessary to always get the time of the second file in the
> diff, so the right time can be shown for removed files.
>
> I posted this before, for 1.11, but apparently it never made it into the
> sources.  Hope you'll accept it.

Why isn't --brief (um, maybe only `-s' for rdiff) mode sufficient for this 
purpose?  And if
the parser is your own tool, why not tell it to ignore the binary diff lines or 
run the file
through sed and remove the lines before passing the data to your tool?

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:dprice@collab.net         CollabNet ( http://collab.net )
--
No experiment can be more interesting than that we are now trying, and which we
trust will end in establishing the fact, that men can be governed by reason and
truth.  Our first object should therefore be to leave open to him all the
avenues of truth.  The most effective hitherto found, is the freedom of the
press.  It is, therefore, the first shut up by those who fear the investigation
of their actions.
                        - Thomas Jefferson






reply via email to

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