pgsql: Improve exclude pattern file processing in pgindent - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Improve exclude pattern file processing in pgindent
Date
Msg-id E1pKQYo-005IWo-NG@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: instr_time: Represent time as an int64 on all platforms
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Update more obsolete multixact.c comments.