Re: Git diff patch in context diff format

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Qi Huang <huangqiyx(at)outlook(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Git diff patch in context diff format
Date: 2012-08-03 08:28:42
Message-ID: CA+Tgmoayu3Mihjc_Oz077ZTD5at+Nd_0UoZY2Tiy9dL-_HPuEw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Aug 3, 2012 at 2:56 AM, Qi Huang <huangqiyx(at)outlook(dot)com> wrote:
> Hi, hackers
> I was exporting my project to a patch file. As the patch review
> requires, the patch needs to be in context diff format
> (http://wiki.postgresql.org/wiki/Reviewing_a_Patch). But the git diff
> exports in a format similar to unified format. What is everyone doing with
> patching currently? Is there any standard way?

When I want a context diff, I just do:

git diff | filterdiff --format=context

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2012-08-03 08:54:16 pg_dump custom format without timestamp?
Previous Message Qi Huang 2012-08-03 06:56:27 Git diff patch in context diff format