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

From Tom Lane
Subject Re: exclude tmp_check and tmp_install from pgindent
Date
Msg-id 26234.1539005869@sss.pgh.pa.us
Whole thread Raw
In response to Re: exclude tmp_check and tmp_install from pgindent  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
List pgsql-hackers
Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes:
> 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?

> I wonder if a more general solution might be a good idea. Say like 
> ignoring everything pointed to by
>      git status --porcelain --ignored

Peter's idea sounds better to me.  We don't have that many derived .c
or .h files, so I doubt the "git status" calls would pay for themselves.

(Personally, I don't run pgindent in non-cleaned trees ...)

            regards, tom lane


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: out-of-order XID insertion in KnownAssignedXids
Next
From: Alvaro Herrera
Date:
Subject: Re: pgsql: Fix event triggers for partitioned tables