pgsql: pgindent: filter files for the --commit option

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pgindent: filter files for the --commit option
Date: 2023-02-12 13:52:45
Message-ID: E1pRCma-000kSN-Rg@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pgindent: filter files for the --commit option

per gripe from Shi Yu, solution from Jelte Fennema

Also add a check that the file exists, and issue a warning if it
doesn't.

As an efficiency measure, avoid processing any file more than once.

Discussion: https://postgr.es/m/TYAPR01MB6315B86619944D4A6B56842DFDDE9@TYAPR01MB6315.jpnprd01.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dab07e8c6896df3129bc153ead1f107e695652ee

Modified Files
--------------
src/tools/pgindent/pgindent | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-02-12 17:22:27 pgsql: Integrate pg_bsd_indent into our build/test infrastructure.
Previous Message Andres Freund 2023-02-11 18:22:55 pgsql: Add pg_stat_io view, providing more detailed IO statistics