pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Jelte Fennema <postgres@jeltef.nl>
Cc: shiy.fnst@fujitsu.com <shiy.fnst@fujitsu.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Noah Misch <noah@leadboat.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Jesse Zhang <sbjesse@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: run pgindent on a regular basis / scripted manner
Date: Sun, 12 Feb 2023 11:24:14 -0500
Message-ID: <842819.1676219054@sss.pgh.pa.us> (raw)
In-Reply-To: <00885533-ff96-2a95-7911-329c873b3029@dunslane.net>
References: <CAH2-Wzm0niYBPcN6eX3PzHABfj0dE3fwifo5bdturvMp=9FGqw@mail.gmail.com>
	<1923921.1675526879@sss.pgh.pa.us>
	<20230204171101.GF1653@telsasoft.com>
	<2009472.1675532231@sss.pgh.pa.us>
	<CA+TgmoY59Ksso81RNLArNxj0a7xaqV_F_u7gSMHbgdc2kG5Vpw@mail.gmail.com>
	<ef4c7196-24b0-9fe9-1b5e-3ec8a5c34c7b@dunslane.net>
	<CA+TgmoYTg4avVbkzhhQi3Z-HoxsAvtD=tZiSdWZU9avF_2ouZA@mail.gmail.com>
	<3d67bc80-4de2-5ba8-e272-e4ad2e59ba04@dunslane.net>
	<4ac8f263-f1bb-faa5-a307-1fffe00f0e3e@dunslane.net>
	<CAGECzQRJrcoxozHh=BRTdLrirFui-3nvdRZru7GGa4F9HJV2Rw@mail.gmail.com>
	<b8f18576-afc0-d961-b33b-c0fa2e63edeb@dunslane.net>
	<0f074818-b01a-799f-3c74-5fb5deab1d23@dunslane.net>
	<CAGECzQSUYmfTwEWcVfwb4d=vf=M7RYJjq6ie0YPTUhP+YFcEww@mail.gmail.com>
	<1d66447e-a77b-ca0d-90a0-782800e85383@dunslane.net>
	<TYAPR01MB6315B86619944D4A6B56842DFDDE9@TYAPR01MB6315.jpnprd01.prod.outlook.com>
	<CAGECzQT44xN-zcTQ0+OxLpWa9nONxmEaYxQpaWM+My+A4o72PA@mail.gmail.com>
	<390e7b04-11f3-f715-7a7d-d1a9077fbea8@dunslane.net>
	<00885533-! ff96-2a95-7911-329c873b3029@dunslane.net>

Andrew Dunstan <andrew@dunslane.net> writes:
> ... then you could do
>      pgindent `git dirty`
> The only danger would be if there were no dirty files. Maybe we need a 
> switch to inhibit using the current directory if there are no command 
> line files.

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.

			regards, tom lane





view thread (308+ messages)  latest in thread

Message-ID: <842819.1676219054@sss.pgh.pa.us>
Permalink:  ../842819.1676219054@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/842819.1676219054@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andrew@dunslane.net, postgres@jeltef.nl, shiy.fnst@fujitsu.com, robertmhaas@gmail.com, pryzby@telsasoft.com, andres@anarazel.de, noah@leadboat.com, pg@bowt.ie, bruce@momjian.us, magnus@hagander.net, alvherre@2ndquadrant.com, sfrost@snowman.net, sbjesse@gmail.com
  Subject: Re: run pgindent on a regular basis / scripted manner
  In-Reply-To: <842819.1676219054@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox