pgsql: Improve exclude pattern file processing in pgindent

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve exclude pattern file processing in pgindent
Date: 2023-01-24 21:10:31
Message-ID: E1pKQYo-005IWo-NG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2023-01-24 23:18:10 pgsql: Update more obsolete multixact.c comments.
Previous Message Andres Freund 2023-01-24 16:11:08 Re: pgsql: instr_time: Represent time as an int64 on all platforms