Git development
 help / color / mirror / Atom feed
From: Aniket Gupta <aniketgupta3001@gmail.com>
To: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Cc: Laveesh Bansal <laveeshb@laveeshbansal.com>
Subject: Re: [GSoC PATCH v2] fsck: report the number of objects in the connectivity message
Date: Mon, 30 Nov 2026 01:03:27 +0530	[thread overview]
Message-ID: <20261129193327.56928-1-aniketgupta3001@gmail.com> (raw)
In-Reply-To: <xmqqbj77h2sl.fsf@gitster.g>

> Micronits.
>
>  - "which is the number of buckets" is missing "the".
>
>  - What holds the objects is not a "hash" but a "hashtable".
>
>  - In an empty repository, we have no hash buckets, so the capacity
>    of the hashtable exactly matches the number of objects in that
>    case.  "In a non-empty repository, the hashtable is larger than
>    what it holds" would be more accurate.

Will fix all in v3.

> A report on rebasing is incomplete without an explanation of the
> reason why you had to rebase (what you wanted to achieve by
> rebasing).

Apologies for missing that. In v1 the new tests were added at the end of
t1450-fsck.sh. The test added by a9456705f1 (pack-check: fix bogus
corruption report with core.bigFileThreshold, 2026-10-14) is now the
last one there, so v1 no longer applied. I rebased to resolve that
conflict myself.

> Another small change not mentioned in the proposed log message is to
> report the number of objects using "%u".

Will be done in v3.

> Minor nit.  "This is smaller than the value get_max_object_index()
> returns when the object hashmap is not empty, as that counts ..."

Will change the comment.

> I wonder if you can just 'git add' a regular file in a freshly
> created repository without committing to get the same effect?

Agreed. It prints "Checking connectivity (1 object)". Will use that in
v3.

> The code is prepared to have up to 2 billion objects in an object
> pool on 32-bit machines, as the type of the .nr_objs member [...] is
> 'int' [...].  Something to think about later after the dust settles
> (#leftoverbits).

Ack. I will check after this one.

> Optional cleanup with test_when_finished "rm -rf ..." would match
> the test right above, though other tests in this file omit it too,

Will be done in v3.

  reply	other threads:[~2026-11-29 19:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-20 10:21 [GSoC PATCH] fsck: report the real object count in the connectivity message Aniket Gupta
2026-11-12  2:55 ` Laveesh Bansal
2026-11-12 13:07   ` Aniket Gupta
2026-11-23 18:46     ` Laveesh Bansal
2026-11-23 22:43       ` Aniket Gupta
2026-11-29 10:02 ` [GSoC PATCH v2] fsck: report the number of objects " Aniket Gupta
2026-11-29 19:10   ` Junio C Hamano
2026-11-29 19:33     ` Aniket Gupta [this message]
2026-11-30 12:36   ` [GSoC PATCH v3] " Aniket Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261129193327.56928-1-aniketgupta3001@gmail.com \
    --to=aniketgupta3001@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=laveeshb@laveeshbansal.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox