Re: exclude tmp_check and tmp_install from pgindent

From: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: exclude tmp_check and tmp_install from pgindent
Date: 2018-10-08 12:33:38
Message-ID: bdef1db3-6bbd-3a61-b1c4-7d1a6353aaa5@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10/08/2018 05:49 AM, Peter Eisentraut wrote:
> 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/
>

Seems reasonable - I tend to do vpath builds so this hasn't been a
problem for me ;-)

I wonder if a more general solution might be a good idea. Say like
ignoring everything pointed to by

    git status --porcelain --ignored

with a status of '??' (untracked) or '!!' (ignored).

cheers

andrew

--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2018-10-08 12:54:25 Re: pgsql: Fix event triggers for partitioned tables
Previous Message Amit Kapila 2018-10-08 11:43:16 Re: now() vs transaction_timestamp()