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 1mXU2K-0000Ca-Tl for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Oct 2021 19:54:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXU2I-0008ER-TS for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Oct 2021 19:54:06 +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 1mXU2I-0008EJ-Lb for pgsql-hackers@lists.postgresql.org; Mon, 04 Oct 2021 19:54:06 +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 1mXU2G-0002ik-HY for pgsql-hackers@lists.postgresql.org; Mon, 04 Oct 2021 19:54:05 +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 194Js0Kp4006181; Mon, 4 Oct 2021 15:54:01 -0400 From: Tom Lane To: Daniel Gustafsson cc: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= , pgsql-hackers@lists.postgresql.org Subject: Re: Duplicat-word typos in code comments In-reply-to: <64684EA9-3BDB-413E-B254-8EA8AE2EC6DF@yesql.se> References: <87bl45t0co.fsf@wibble.ilmari.org> <73E4E56B-D996-4701-97ED-A66ED98B2873@yesql.se> <878rz8udbm.fsf@wibble.ilmari.org> <3978708.1633355813@sss.pgh.pa.us> <64684EA9-3BDB-413E-B254-8EA8AE2EC6DF@yesql.se> Comments: In-reply-to Daniel Gustafsson message dated "Mon, 04 Oct 2021 21:19:50 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4006179.1633377240.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 04 Oct 2021 15:54:00 -0400 Message-ID: <4006180.1633377240@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Daniel Gustafsson writes: >> On 4 Oct 2021, at 15:56, Tom Lane wrote: >> I used to think it was better to go ahead and manually reflow, if you >> use an editor that makes that easy. That way there are fewer commits >> touching any one line of code, which is good when trying to review >> code history. However, now that we've got the ability to make "git >> blame" ignore pgindent commits, maybe it's better to leave that sort >> of mechanical cleanup to pgindent, so that the substantive patch is >> easier to review. > Yeah, that's precisely why I did it. Since we can skip over pgindent sw= eeps it > makes sense to try and minimize such changes to make code archaeology ea= sier. > There are of course cases when the result will be such an eyesore that w= e'd > prefer to have it done sooner, but in cases like these where line just g= ot one > word shorter it seemed an easy choice. Actually though, there's another consideration: if you leave not-correctly-pgindented code laying around, it causes problems for the next hacker who modifies that file and wishes to neaten up their own work by pgindenting it. They can either tediously reverse out part of the delta, or commit a patch that includes entirely-unrelated cosmetic changes, neither of which is pleasant. regards, tom lane