Обсуждение: pgsql: Improve exclude pattern file processing in pgindent

Поиск
Список
Период
Сортировка

pgsql: Improve exclude pattern file processing in pgindent

От
Andrew Dunstan
Дата:
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(-)