Re: exclude tmp_check and tmp_install from pgindent - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: exclude tmp_check and tmp_install from pgindent
Date
Msg-id bdef1db3-6bbd-3a61-b1c4-7d1a6353aaa5@2ndQuadrant.com
Whole thread Raw
In response to exclude tmp_check and tmp_install from pgindent  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: exclude tmp_check and tmp_install from pgindent  (Michael Paquier <michael@paquier.xyz>)
Re: exclude tmp_check and tmp_install from pgindent  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: Konstantin Knizhnik
Date:
Subject: Re: out-of-order XID insertion in KnownAssignedXids
Next
From: Tom Lane
Date:
Subject: Re: executor relation handling