Re: Git, diffs, and patches

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Git, diffs, and patches
Date: 2021-01-23 20:16:12
Message-ID: 20210123201612.GA16430@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jan 15, 2021 at 01:39:49PM -0500, Bruce Momjian wrote:
> I learned a few things when working on the key management patch that I
> want to share here in case it helps anyone:
...
> Maybe everyone else knew these things, but I didn't. I can provide more
> details if desired.

One more learning is that git diff compares two source trees and outputs
a diff, while format-patch compares two trees with a common commit and
outputs a diff for each commit. This is why format-patch can output
file name changes.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

The usefulness of a cup is in its emptiness, Bruce Lee

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-01-23 22:41:32 Test coverage for contrib/auto_explain
Previous Message Pavel Stehule 2021-01-23 18:50:49 Re: proposal - idea - enhancing plpgsql FOREACH for JSON, jsonb and hstore