]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Further improve pgindent's list of file exclusions.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Sep 2020 18:16:18 +0000 (14:16 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Sep 2020 18:16:18 +0000 (14:16 -0400)
commit74d4608f506ba423e4c84609c1c0e03e1e92cb91
tree4a45fa0fe91964ba115ea1b4d670bcea2b5a468a
parent99175141c9254318e5894ac30b9fdb622612acda
Further improve pgindent's list of file exclusions.

I despair of people keeping the README file's notes in sync with
the actual exclusion list, so move the notes into the exclusion file.
Adjust the pgindent script to explicitly ignore comments in the file,
just in case (though it's hard to believe any would match filenames).

Extend the list so that it doesn't process any files we'd not wish it to
even in a fully-built-out development directory.  (There are still a
couple of derived files that it wants to reformat, but fixing the
generator scripts for those seems like fit material for a separate patch.)

Discussion: https://postgr.es/m/79ed5348-be7a-b647-dd40-742207186a22@2ndquadrant.com
src/tools/pgindent/README
src/tools/pgindent/exclude_file_patterns
src/tools/pgindent/pgindent