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

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
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:16:56
Message-ID: CAApHDvrhL=P7qWFYPRYJoT0LiVS9TPnLO7Gf-VnqLuPu34p=5Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2025-11-20 21:26:06 Re: 10% drop in code line count in PG 17
Previous Message Robert Haas 2025-11-20 21:16:23 Re: another autovacuum scheduling thread