Re: run pgindent on a regular basis / scripted manner - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: run pgindent on a regular basis / scripted manner
Date
Msg-id 2701ad84-05c9-6381-1666-b874c3000d54@dunslane.net
Whole thread Raw
In response to Re: run pgindent on a regular basis / scripted manner  (Justin Pryzby <pryzby@telsasoft.com>)
Responses Re: run pgindent on a regular basis / scripted manner
List pgsql-hackers


On 2023-02-12 Su 15:59, Justin Pryzby wrote:
It seems like if pgindent knows about git, it ought to process only
tracked files.  Then, it wouldn't need to manually exclude generated
files, and it wouldn't process vpath builds and who-knows-what else it
finds in CWD.


for vpath builds use an exclude file that excludes the vpath you use.

I don't really want restrict this to tracked files because it would mean you can't pgindent files before you `git add` them. And we would still need to do manual exclusion for some files that are tracked, e.g. the snowball files.



At least --commit doesn't seem to work when run outside of the root
source dir.


Yeah, I'll fix that, thanks for mentioning.


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Jim Jones
Date:
Subject: Re: [PATCH] Add pretty-printed XML output option
Next
From: Andrew Dunstan
Date:
Subject: Re: run pgindent on a regular basis / scripted manner