]> Kevux Git Server - rit/commit
csum-file: drop `hashfd_throughput()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 13 Mar 2026 06:45:20 +0000 (07:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Mar 2026 15:54:15 +0000 (08:54 -0700)
commit2bf8f36ddb308b084912f8265ad6fd60df34a036
tree95a19ab2fbfdec7295777e4ca417253771231850
parenta1118c0a44606e0b71e515b05112ff38fef989c0
csum-file: drop `hashfd_throughput()`

The `hashfd_throughput()` function is used by a single callsite in
git-pack-objects(1). In contrast to `hashfd()`, this function uses a
progress meter to measure throughput and a smaller buffer length so that
the progress meter can provide more granular metrics.

We're going to change that caller in the next commit to be a bit more
specific to packing objects. As such, `hashfd_throughput()` will be a
somewhat unfitting mechanism for any potential new callers.

Drop the function and replace it with a call to `hashfd_ext()`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
csum-file.c
csum-file.h