]> git.ipfire.org Git - thirdparty/git.git/commit
pack-bitmap: drop redundant args from `bitmap_writer_build_type_index()`
authorTaylor Blau <me@ttaylorr.com>
Thu, 15 Aug 2024 17:31:03 +0000 (13:31 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Aug 2024 18:20:24 +0000 (11:20 -0700)
commit125ee4ae80e3661c3208fc1c8db0c619e5f625d2
tree9d6a990388e8e99884c77fe18081db937395c6c8
parent01e9d129396e98b611bff2ae82bb3d610b28c588
pack-bitmap: drop redundant args from `bitmap_writer_build_type_index()`

The previous commit ensures that the bitmap_writer's "to_pack" field is
initialized early on, so the "to_pack" and "index_nr" arguments to
`bitmap_writer_build_type_index()` are redundant.

Drop them and adjust the callers accordingly.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
midx-write.c
pack-bitmap-write.c
pack-bitmap.h