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

From Michael Paquier
Subject Re: exclude tmp_check and tmp_install from pgindent
Date
Msg-id 20181008131333.GA23532@paquier.xyz
Whole thread Raw
In response to Re: exclude tmp_check and tmp_install from pgindent  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Responses Re: exclude tmp_check and tmp_install from pgindent  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
List pgsql-hackers
On Mon, Oct 08, 2018 at 08:33:38AM -0400, Andrew Dunstan wrote:
> Seems reasonable - I tend to do vpath builds so this hasn't been a problem
> for me ;-)

+1.

> 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).

I had exactly the same thought, but with "git ls-files".  There are
still some files which should not be indented, like ppport.h which is
generated automatically still part of the tree.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pg_dumpall --exclude-database option
Next
From: Andres Freund
Date:
Subject: Re: out-of-order XID insertion in KnownAssignedXids