/usr/src Git --count (count of commits to the branch)

Graham Perrin grahamperrin at gmail.com
Mon Apr 5 19:00:54 UTC 2021


On 23/03/2021 00:44, Graham Perrin wrote:
> On 21/03/2021 22:35, Kevin Oberman wrote:
>>>> Take a look at the newd git "Getting started" guide at
>> https://docs.freebsd.org/en/articles/committers-guide/#git-primer. If 
>> you
>> use a shallow clone, there is no easy way. If you have a full clone, you
>> will have a hash starting with 'n' followed by 6 digits. This is a 
>> sequence
>> count of commits to the relevant branch. In your case, the sequence is
>> n244684.
>
>
> FreeBSD: git --count result differs from the number in output from 
> uname -v
> <https://pastebin.com/P1avJGwz>
>
> I have seen differences more than once.
>
> Can someone explain? Thanks.

Why is the count so different?

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

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



More information about the freebsd-current mailing list