Git development
 help / color / mirror / Atom feed
From: Laveesh Bansal <laveeshb@laveeshbansal.com>
To: Aniket Gupta <aniketgupta3001@gmail.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [GSoC PATCH] fsck: report the real object count in the connectivity message
Date: Wed, 11 Nov 2026 18:55:59 -0800	[thread overview]
Message-ID: <20261112025559.83265-1-laveeshb@laveeshbansal.com> (raw)
In-Reply-To: <20261020102134.42151-1-aniketgupta3001@gmail.com>

Thanks for the patch. Looks good to me. I ran t1450 with and without
the patch: the new tests pass with it and fail without.

One thing about the title:

> fsck: report the real object count in the connectivity message

In a partial clone the number counts blobs that were never downloaded.
Setup:

    git init -q -b main src
    git -C src config uploadpack.allowFilter true
    for i in 1 2 3
    do
    	echo $i >src/f$i
    	git -C src add f$i
    	git -C src commit -qm c$i
    done
    git clone -q --no-checkout --filter=blob:none file://$PWD/src pc

Then:

    $ git -C pc fsck --verbose 2>&1 | grep connectivity
    Checking connectivity (9 objects)
    $ git -C pc cat-file --batch-all-objects --batch-check | wc -l
    warning: This repository uses promisor remotes. Some objects may not be loaded.
    6

Would "report the number of objects checked" fit the title better?

  reply	other threads:[~2026-11-12  2:56 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 [this message]
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
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=20261112025559.83265-1-laveeshb@laveeshbansal.com \
    --to=laveeshb@laveeshbansal.com \
    --cc=aniketgupta3001@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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