Re: 10% drop in code line count in PG 17

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: 10% drop in code line count in PG 17
Date: 2025-11-20 21:26:06
Message-ID: aR-Hbl6TtvxKYLcG@momjian.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 21, 2025 at 10:16:56AM +1300, David Rowley wrote:
> On Fri, 21 Nov 2025 at 09:27, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > # This script is used to compute the total number of "C" lines in the release
> > -# This should be run from the top of the Git tree after a 'make distclean'
> > -find . -name '*.[chyl]' | xargs cat| wc -l
> > +# This should be run from the top of the Git tree.
---------------------------------------------------

> > +git ls-files -- '*.[chyl]' | xargs cat | wc -l
>
> I think you need to keep the "top of the Git tree" comment as git
> ls-files is context-based.

Uh, the current file has this comment:

# This script is used to compute the total number of "C" lines in the release
# This should be run from the top of the Git tree.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

Do not let urgent matters crowd out time for investment in the future.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2025-11-20 21:33:00 Re: Clarification on when _PG_init() is invoked for extensions
Previous Message David Rowley 2025-11-20 21:16:56 Re: 10% drop in code line count in PG 17