Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Apr 2021 21:43:53 +0200
From:      "Herbert J. Skuhra" <herbert@gojira.at>
To:        freebsd-questions@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: /usr/src Git --count (count of commits to the branch)
Message-ID:  <87lf9wpldy.wl-herbert@gojira.at>
In-Reply-To: <f6fa0c0b-cfe6-1caf-1e82-7dcd191349c5@gmail.com>
References:  <20210321165225.11fa1f5559373032ea629412@3dresearch.com> <CAN6yY1vQg1qchoGuECb8smBzQxk9A12=MS0%2BRCMMg-vOnJeLHA@mail.gmail.com> <62accae5-1d15-cc5f-4438-dbf503af94cd@gmail.com> <f6fa0c0b-cfe6-1caf-1e82-7dcd191349c5@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 05 Apr 2021 21:00:47 +0200, Graham Perrin wrote:
> =

> Why is the count so different?
> =

> The count today: 257732; and the result of today's build: n245827
> =

> % bectl list -c creation
> BE=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Active Mo=
untpoint Space Created
> r357746-Waterfox=A0=A0=A0=A0=A0 -=A0=A0=A0=A0=A0 -=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 59.2G 2020-03-10 18:24
> n2733-5ac839029d-f=A0=A0=A0 -=A0=A0=A0=A0=A0 -=A0=A0=A0=A0=A0=A0=A0=A0=
=A0 12.5G 2021-03-04 09:17
> n257337-5fe0cd6503d-e -=A0=A0=A0=A0=A0 -=A0=A0=A0=A0=A0=A0=A0=A0=A0 1=
.55G 2021-03-23 07:56
> n257551-66f138563be-a -=A0=A0=A0=A0=A0 -=A0=A0=A0=A0=A0=A0=A0=A0=A0 1=
29M=A0 2021-03-25 09:35
> n257551-66f138563be-b -=A0=A0=A0=A0=A0 -=A0=A0=A0=A0=A0=A0=A0=A0=A0 8=
82M=A0 2021-03-26 19:27
> n257551-66f138563be-c -=A0=A0=A0=A0=A0 -=A0=A0=A0=A0=A0=A0=A0=A0=A0 9=
5.4M 2021-03-31 16:26
> n257732-361e9501800-a NR=A0=A0=A0=A0 /=A0=A0=A0=A0=A0=A0=A0=A0=A0 127=
G=A0 2021-04-05 18:48
> % uname -v
> FreeBSD 14.0-CURRENT #91 main-n245827-361e9501800: Mon Apr=A0 5 17:59=
:57
> BST 2021
> root@mowa219-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODE=
BUG
> % git -C /usr/src rev-list --count HEAD
> 257732

/usr/src/sys/conf/newvers.sh uses a different command:

  git_cnt=3D$($git_cmd rev-list --first-parent --count HEAD 2>/dev/null=
)
                              ^^^^^^^^^^^^^^
See:

commit 8a51f14a7833fd14e1f125e63a0af9d260dcd287
Author: Warner Losh
Date:   Mon Jan 25 12:53:31 2021 -0700

--
Herbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87lf9wpldy.wl-herbert>