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

Re: Non-unified patches and dpkg source format ‘3.0 (quilt)’.



So... you all realize, right, that old-style context diffs and unified
diffs can be trivially converted into each other?  They have the same
amount of information.

    filterdiff --format=unified < context.diff
    filterdiff --format=context < unified.diff

(filterdiff comes with patchutils.)  Given that, this seems like a tempest
in a teapot to me.  Just convert the diff into whatever format the tool
that you're using expects or the reviewer wants to read.

diff -c diffs are somewhat easier to read in some specific circumstances,
usually involving significant code rewrites, than diff -u diffs.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: