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