]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repack.c: avoid "the_hash_algo" in `finish_pack_objects_cmd()`
authorTaylor Blau <me@ttaylorr.com>
Wed, 15 Oct 2025 22:27:41 +0000 (18:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2025 17:08:53 +0000 (10:08 -0700)
commitc660b0dbcbb70647f5103a4573963397522a1f0f
tree006284a4a35c5deebaa1ded7198c91d3c3bc25df
parenta7a5a607b9c21c7988782cf8ed04078ca320c784
builtin/repack.c: avoid "the_hash_algo" in `finish_pack_objects_cmd()`

In a similar spirit as previous commits, avoid referring directly to
"the_hash_algo" in builtin/repack.c::finish_pack_objects_cmd() and
instead accept one as a parameter to the function.

Since this function has a number of callers throughout the builtin, the
diff is a little noisier than previous commits. However, each hunk is
limited to passing the hash_algo parameter from a repository pointer
that is already in scope.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c