Re: [GSoC PATCH] fsck: report the real object count in the connectivity message
- From
- Laveesh Bansal <laveeshb@laveeshbansal.com>
- Date
- Nov 12, 2026, 02:55 UTC
- Message-ID
- <20261112025559.83265-1-laveeshb@laveeshbansal.com>
- 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 pcThen:
$ 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.
6Would "report the number of objects checked" fit the title better?