Re: unified diff and context diff

2008-03-07 Thread Bruno Haible
Eric Blake wrote: > Or see filterdiff, which does either direction and more, part of > patchutils: http://cyberelk.net/tim/patchutils/ Thanks a lot for the pointer! Very useful for working with diffs in textual form!! (Working with 'git' branches is an alternative; however with diffs in textual fo

Re: unified diff and context diff

2008-03-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 3/6/2008 7:43 AM: | 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] Or see filterdiff, which does either dire

Re: unified diff and context diff

2008-03-06 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > 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] Emacs diff-mode can also convert between unified and context diffs. -- Ben Pfaff http://be

Re: unified diff and context diff

2008-03-06 Thread Bruno Haible
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 block