Re: Context diffs

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Context diffs
Date: 2021-01-05 17:58:16
Message-ID: 20210105175816.GM7432@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 5, 2021 at 11:21:07AM +1300, Thomas Munro wrote:
> On Tue, Jan 5, 2021 at 8:07 AM Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > * "git apply" and "git am" can't process context diffs (they throw an
> > error once a context-like section of the diff is hit; simple
> > adding/removing lines in a block works)
> >
> > * the commit-fest doesn't recognized context diff attachments as
> > patches:
> >
> > https://commitfest.postgresql.org/31/2912/
> >
> > * cfbot can't process file renames/add/delete from context diffs
>
> For the record, cfbot just uses plain old GNU patch, because that
> seems to accept nearly everything that anyone posts here (after a step
> that tries to unpack tarballs etc). Several people have suggested I
> change it to use git apply instead (IIRC it works better for patches
> containing binary files such as cryptographic keys?), but then it
> wouldn't accept ye olde context diffs.

Does Windows also use 'patch'? I think I saw Windows behave differently
for file additions. Does the commit-fest app and cfbot both have the
same criteria for recognizing attachments as patches? I don't think
they do.

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

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2021-01-05 17:59:37 Re: set_config() documentation clarification
Previous Message Bruce Momjian 2021-01-05 17:56:05 Re: Context diffs