Re: Add --check option to pgindent

From: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
To: Tristan Partin <tristan(at)neon(dot)tech>
Cc: Daniel Gustafsson <daniel(at)yesql(dot)se>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Euler Taveira <euler(at)eulerto(dot)com>, Michael Banck <mbanck(at)gmx(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add --check option to pgindent
Date: 2023-12-21 10:58:19
Message-ID: CAGECzQSC3baD4Fzc1Q7bGkkrj2fcGLAKcoo8+qch=WvJFActyw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 19 Dec 2023 at 17:54, Tristan Partin <tristan(at)neon(dot)tech> wrote:
> I was envisioning something along the lines of:
>
> pgindent --check --diff > patches.txt
> status=$?
> patch <patches.txt # no idea if this works, or if you need a for loop with manual parsing
> exit $status

Okay, I got a working version. And I updated the pre-commit hook on
the wiki accordingly.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2023-12-21 11:02:02 Re: partitioning and identity column
Previous Message Christoph Berg 2023-12-21 10:56:22 int4->bool test coverage