Re: Add --check option to pgindent
Jelte Fennema-Nio <postgres@jeltef.nl>
From: Jelte Fennema-Nio <postgres@jeltef.nl>
To: Tristan Partin <tristan@neon.tech>
Cc: Daniel Gustafsson <daniel@yesql.se>, Andrew Dunstan <andrew@dunslane.net>, Alvaro Herrera <alvherre@alvh.no-ip.org>, Tom Lane <tgl@sss.pgh.pa.us>, Euler Taveira <euler@eulerto.com>, Michael Banck <mbanck@gmx.net>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2023-12-21T10:58:19Z
Lists: 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.
Commits
-
Rename pgindent options
- 387aecc948ed 17.0 landed