From: | Qi Huang <huangqiyx(at)outlook(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(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 10:12:03 |
Message-ID: | BAY002-W296C654140D83447E90E17B0CA0@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thanks for your suggestion, Robert.I just found this page (http://wiki.postgresql.org/wiki/Working_with_Git#Context_diffs_with_Git) quite useful and powerful.
Best RegardsHuang Qi VictorComputer Science of National University of Singapore
> Date: Fri, 3 Aug 2012 04:28:42 -0400
> Subject: Re: [HACKERS] Git diff patch in context diff format
> From: robertmhaas(at)gmail(dot)com
> To: huangqiyx(at)outlook(dot)com
> CC: pgsql-hackers(at)postgresql(dot)org
>
> 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
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
From | Date | Subject | |
---|---|---|---|
Next Message | Amit kapila | 2012-08-03 11:46:42 | [WIP] Performance Improvement by reducing WAL for Update Operation |
Previous Message | Fabien COELHO | 2012-08-03 09:02:51 | Re: [PATCH] Make "psql -1 < file.sql" work as with "-f" |