bug-gnulib
[Top][All Lists]
Advanced

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

Re: unified diff and context diff


From: Bruno Haible
Subject: Re: unified diff and context diff
Date: Thu, 6 Mar 2008 15:43:46 +0100
User-agent: KMail/1.5.4

Eric Blake wrote:
> Either form works for either case.  But for readability purposes,
> documentation patches tend to modify sentences, and it is nice to see the
> before and after effect of a partial sentence without having lots of lines
> in between.  And code patches tend to modify logical blocks that are
> easier to read in entirety rather than with interruptions from the old
> version of code.

Yes, exactly.

There's also a program 'ud2cd' which converts a unified diff to a context diff
a posteriori, and 'cd2ud' which converts a context diff to a unified diff. [1]

Bruno

[1] http://www.haible.de/bruno/gnu/diffconvert-1.4.tar.gz





reply via email to

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