Re: Add --check option to pgindent

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Tristan Partin <tristan@neon.tech>
Cc: pgsql-hackers@postgresql.org
Date: 2023-12-12T00:21:36Z
Lists: pgsql-hackers
> On 12 Dec 2023, at 01:09, Tristan Partin <tristan@neon.tech> wrote:
> 
> Not sold on the name, but --check is a combination of --silent-diff and --show-diff. I envision --check mostly being used in CI environments. I recently came across a situation where this behavior would have been useful. Without --check, you're left to capture the output of --show-diff and exit 2 if the output isn't empty by yourself.

I haven’t studied the patch but I can see that being useful.

./daniel


Commits

  1. Rename pgindent options