Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRJfS-0000aZ-DD for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Feb 2023 21:13:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pRJfQ-0002qS-7N for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Feb 2023 21:13:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRJfP-0002qJ-U6 for pgsql-hackers@lists.postgresql.org; Sun, 12 Feb 2023 21:13:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRJfN-0001Z9-IJ for pgsql-hackers@postgresql.org; Sun, 12 Feb 2023 21:13:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 31CLDZob961095; Sun, 12 Feb 2023 16:13:35 -0500 From: Tom Lane To: Andrew Dunstan cc: Jelte Fennema , "shiy.fnst@fujitsu.com" , Robert Haas , Justin Pryzby , Andres Freund , Noah Misch , Peter Geoghegan , Bruce Momjian , Magnus Hagander , Alvaro Herrera , Stephen Frost , Jesse Zhang , "pgsql-hackers@postgresql.org" Subject: Re: run pgindent on a regular basis / scripted manner In-reply-to: <22af2c75-73a6-beab-e376-0e56cbe9a97d@dunslane.net> References: <2009472.1675532231@sss.pgh.pa.us> <3d67bc80-4de2-5ba8-e272-e4ad2e59ba04@dunslane.net> <4ac8f263-f1bb-faa5-a307-1fffe00f0e3e@dunslane.net> <0f074818-b01a-799f-3c74-5fb5deab1d23@dunslane.net> <1d66447e-a77b-ca0d-90a0-782800e85383@dunslane.net> <390e7b04-11f3-f715-7a7d-d1a9077fbea8@dunslane.net> <00885533-! ff96-2a95-7911-329c873b3029@dunslane.net> <842819.1676219054@sss.pgh.pa! .us> <22af2c75-73a6-beab-e376-0e56cbe9a97d@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Sun, 12 Feb 2023 15:41:56 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <961093.1676236415.1@sss.pgh.pa.us> Date: Sun, 12 Feb 2023 16:13:35 -0500 Message-ID: <961094.1676236415@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > On 2023-02-12 Su 11:24, Tom Lane wrote: >> It seems like "indent the whole tree" is about to become a minority >> use-case. Maybe instead of continuing to privilege that case, we >> should say that it's invoked by some new switch like --all-files, >> and without that only the stuff identified by command-line arguments >> gets processed. > I don't think we need --all-files. The attached gets rid of the build > and code-base cruft, which is now in any case obsolete given we've put > pg_bsd_indent in our code base. So the way to spell this instead of > "pgindent --all-files" would be "pgindent ." Ah, of course. > I added a warning if there are no files at all specified. LGTM. regards, tom lane