Re: Add --check option to pgindent - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Add --check option to pgindent
Date
Msg-id CAGECzQSC3baD4Fzc1Q7bGkkrj2fcGLAKcoo8+qch=WvJFActyw@mail.gmail.com
Whole thread Raw
In response to Re: Add --check option to pgindent  ("Tristan Partin" <tristan@neon.tech>)
List pgsql-hackers
On Tue, 19 Dec 2023 at 17:54, Tristan Partin <tristan@neon.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.



pgsql-hackers by date:

Previous
From: Christoph Berg
Date:
Subject: int4->bool test coverage
Next
From: Peter Eisentraut
Date:
Subject: Re: partitioning and identity column