pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Jelte Fennema <postgres@jeltef.nl>
Cc: Andres Freund <andres@anarazel.de>
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: Noah Misch <noah@leadboat.com>
Cc: Jesse Zhang <sbjesse@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: run pgindent on a regular basis / scripted manner
Date: Sun, 22 Jan 2023 19:50:10 -0500
Message-ID: <8b063bdf-e2f4-939a-103f-bf3f523e45ef@dunslane.net> (raw)
In-Reply-To: <1492903.1674429243@sss.pgh.pa.us>
References: <CABUevExkB=+FX5Ht2sU6Tmk1fF0h8LqugW5camQ-r00ftPZoSg@mail.gmail.com>
	<20200814202651.GA31108@alvherre.pgsql>
	<CABUevEwGPPaUtObrDywO+vhpFDTJXO+-aeWJd7D46uXTE2sQpA@mail.gmail.com>
	<CAGECzQQs+hz4uQSmD_8oRLr74GtxpE0iXuYE85+RHAzvkF_yvQ@mail.gmail.com>
	<Y8whOD51K2ZlcaFz@momjian.us>
	<CAH2-Wzn_L_kLCw_OLhpBztKwn_aaM0QLmMmubGK4KSxQyJPkbA@mail.gmail.com>
	<1097305.1674334785@sss.pgh.pa.us>
	<CAH2-WzkHHcPRMj3G1b_dUfY0aR4W4OAHQ9_Z6sDGvL8Ew+aRrA@mail.gmail.com>
	<20230121224312.qmwpagrebidr6hi7@awork3.anarazel.de>
	<CAH2-Wzm0niYBPcN6eX3PzHABfj0dE3fwifo5bdturvMp=9FGqw@mail.gmail.com>
	<20230122094957.x542ojaqgi4lalq4@awork3.anarazel.de>
	<CAGECzQRYjHdNQ-Bq2yrBb-8s3Pjx7pfvYPDdNv9tcvDcscDhbg@mail.gmail.com>
	<CAGECzQQZCnmybVcrf9u=eRq=-0SbE+g4CtVu3ZT4B5axBE7JqQ@mail.gmail.com>
	<1354312.1674415202@sss.pgh.pa.us>
	<CAGECzQT6ZPzxat21mEH1vmbWn=c-XimReEMwgOooso+=FGW7Dw@mail.gmail.com>
	<1492903.1674429243@sss.pgh.pa.us>


On 2023-01-22 Su 18:14, Tom Lane wrote:
> Jelte Fennema <postgres@jeltef.nl> writes:
>> Maybe I'm not understanding your issue correctly, but for such
>> a case you could push two commits at the same time.
> I don't know that much about git commit hooks, but do they really
> only check the final state of a series of commits?


The pre-commit hook is literally run every time you do `git commit`. But
it's only run on your local instance and only if you have enabled it.
It's not project-wide.



cheers


andrew

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






view thread (308+ messages)  latest in thread

Message-ID: <8b063bdf-e2f4-939a-103f-bf3f523e45ef@dunslane.net>
Permalink:  ../8b063bdf-e2f4-939a-103f-bf3f523e45ef@dunslane.net/
Also on:    postgresql.org/message-id/8b063bdf-e2f4-939a-103f-bf3f523e45ef@dunslane.net

 · 

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: andrew@dunslane.net, tgl@sss.pgh.pa.us, postgres@jeltef.nl, andres@anarazel.de, pg@bowt.ie, bruce@momjian.us, magnus@hagander.net, alvherre@2ndquadrant.com, sfrost@snowman.net, noah@leadboat.com, sbjesse@gmail.com
  Subject: Re: run pgindent on a regular basis / scripted manner
  In-Reply-To: <8b063bdf-e2f4-939a-103f-bf3f523e45ef@dunslane.net>

* 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