Re: 10% drop in code line count in PG 17 - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: 10% drop in code line count in PG 17
Date
Msg-id aR-Hbl6TtvxKYLcG@momjian.us
Whole thread Raw
In response to Re: 10% drop in code line count in PG 17  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: 10% drop in code line count in PG 17
List 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@momjian.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@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

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



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: 10% drop in code line count in PG 17
Next
From: Hannu Krosing
Date:
Subject: Re: Clarification on when _PG_init() is invoked for extensions