pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pgindent: Skip build directories automatically
Date: Mon, 05 Oct 2026 11:25:01 +0000
Message-ID: <E1xDgoX-00000000PHn-0f4h@gemulon.postgresql.org> (raw)

pgindent: Skip build directories automatically

pgindent descended into build directories located inside the source
tree and reindented the generated files there, which is wasteful and
often makes pg_bsd_indent fail outright.  This change automatically
recognizes build directories and skips them.  This works for both
Meson build directories and Autoconf VPATH build directories.  A build
directory named directly on the command line is still processed, on
the assumption that this was asked for on purpose.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/fc77b35a-34c4-4229-82f1-8cf0ce67f276%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9dbc53591a2de03e0cfdab61a78726f8b2c29eef

Modified Files
--------------
src/tools/pgindent/pgindent     | 32 ++++++++++++++++++++++++++++++--
src/tools/pgindent/pgindent.man |  5 +++++
2 files changed, 35 insertions(+), 2 deletions(-)



Message-ID: <E1xDgoX-00000000PHn-0f4h@gemulon.postgresql.org>
Permalink:  ../E1xDgoX-00000000PHn-0f4h@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xDgoX-00000000PHn-0f4h@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: pgindent: Skip build directories automatically
  In-Reply-To: <E1xDgoX-00000000PHn-0f4h@gemulon.postgresql.org>
  References: <E1xDgoX-00000000PHn-0f4h@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox