Re: unified vs context diffs (was Re: Strange Windows problem, lock_timeout test request)

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Boszormenyi Zoltan <zb(at)cybertec(dot)at>, Hari Babu <haribabu(dot)kommi(at)huawei(dot)com>, 'Craig Ringer' <craig(at)2ndQuadrant(dot)com>, 'Hans-Jürgen Schönig' <hs(at)cybertec(dot)at>, 'Ants Aasma' <ants(at)cybertec(dot)at>, 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 'PostgreSQL Hackers' <pgsql-hackers(at)postgresql(dot)org>, 'Amit kapila' <amit(dot)kapila(at)huawei(dot)com>
Subject: Re: unified vs context diffs (was Re: Strange Windows problem, lock_timeout test request)
Date: 2013-02-24 14:08:34
Message-ID: 20130224140834.GH16142@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Heikki Linnakangas (hlinnakangas(at)vmware(dot)com) wrote:
> So if you want to be kind to readers, look at the patch and choose
> the format depending on which one makes it look better. But there's
> no need to make a point of it when someone posts in "wrong" format.

To be more precise- my main complaint about this is that this patch is
making changes to multi-line comments and to documentation, both of
which get very annoying to try and read in uniform diff format.
Patches that don't do one or the other of those are likely incomplete
anyway.

As another point, it's also the very first thing that we document in
http://wiki.postgresql.org/wiki/Reviewing_a_Patch to check for.

> >Every unified diff can be turned into a context diff by passing it
> >though "filterdiff --format=context".
>
> Yep. And in emacs, there's "diff-unified->context" command. I bet
> most editors have a similar functionality these days.

And it probably doesn't work for every patch either, just as filterdiff
doesn't (see my other email).

Thanks,

Stephen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-02-24 14:34:31 Re: pg_xlogdump
Previous Message Stephen Frost 2013-02-24 14:03:44 Re: Strange Windows problem, lock_timeout test request