exclude tmp_check and tmp_install from pgindent

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: exclude tmp_check and tmp_install from pgindent
Date: 2018-10-08 09:49:46
Message-ID: 0104917e-8a80-b6e4-6929-b029179c76b3@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

pgindent spends a long time digging through tmp_check and tmp_install
directories and ends up re-indenting installed header files. How about
excluding those directories, like below or directly in the script?

diff --git a/src/tools/pgindent/exclude_file_patterns
b/src/tools/pgindent/exclude_file_patterns
index 65c42c131d..c8efc9a913 100644
--- a/src/tools/pgindent/exclude_file_patterns
+++ b/src/tools/pgindent/exclude_file_patterns
@@ -6,3 +6,5 @@
/snowball/libstemmer/
/pl/plperl/ppport\.h$
/jit/llvmjit\.h$
+/tmp_check/
+/tmp_install/

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2018-10-08 09:51:15 PostgreSQL 12, JIT defaults
Previous Message Konstantin Knizhnik 2018-10-08 09:33:20 Re: out-of-order XID insertion in KnownAssignedXids