pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve exclude pattern file processing in pgindent
Date: Tue, 24 Jan 2023 21:10:31 +0000
Message-ID: <E1pKQYo-005IWo-NG@gemulon.postgresql.org> (raw)

Improve exclude pattern file processing in pgindent

This makes two small changes that will improve pgindent's usefulness in
a git hook. First, it looks for the exclude file relative to the current
directory. And second, it applies the filters to filenames given on the
command line as well as those found in a directory sweep.

It might prove necessary to make further efforts to find the exclude
file, and even to allow multiple exclude files, but for now this should
be enough for most purposes.

Reviewed by Jelte Fennema

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1249371632db9d97786edfb3d58c3e89e75b9519

Modified Files
--------------
src/tools/pgindent/pgindent | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)



Message-ID: <E1pKQYo-005IWo-NG@gemulon.postgresql.org>
Permalink:  ../E1pKQYo-005IWo-NG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pKQYo-005IWo-NG@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: andrew@dunslane.net
  Subject: Re: pgsql: Improve exclude pattern file processing in pgindent
  In-Reply-To: <E1pKQYo-005IWo-NG@gemulon.postgresql.org>
  References: <E1pKQYo-005IWo-NG@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