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 1pJl2W-0002sD-JH for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Jan 2023 00:50:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pJl2V-0001Rp-80 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Jan 2023 00:50:23 +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 1pJl2U-0001Rf-V9 for pgsql-hackers@lists.postgresql.org; Mon, 23 Jan 2023 00:50:22 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJl2S-0003sJ-F2 for pgsql-hackers@postgresql.org; Mon, 23 Jan 2023 00:50:21 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id 61604240002; Mon, 23 Jan 2023 00:50:11 +0000 (UTC) Message-ID: <8b063bdf-e2f4-939a-103f-bf3f523e45ef@dunslane.net> Date: Sun, 22 Jan 2023 19:50:10 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: run pgindent on a regular basis / scripted manner Content-Language: en-US To: Tom Lane , Jelte Fennema Cc: Andres Freund , Peter Geoghegan , Bruce Momjian , Magnus Hagander , Alvaro Herrera , Stephen Frost , Noah Misch , Jesse Zhang , PostgreSQL-development References: <20200814202651.GA31108@alvherre.pgsql> <1097305.1674334785@sss.pgh.pa.us> <20230121224312.qmwpagrebidr6hi7@awork3.anarazel.de> <20230122094957.x542ojaqgi4lalq4@awork3.anarazel.de> <1354312.1674415202@sss.pgh.pa.us> <1492903.1674429243@sss.pgh.pa.us> From: Andrew Dunstan In-Reply-To: <1492903.1674429243@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-01-22 Su 18:14, Tom Lane wrote: > Jelte Fennema 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