aboutsummaryrefslogtreecommitdiffstats
path: root/midx-write.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2024-08-15 13:31:03 -0400
committerJunio C Hamano <gitster@pobox.com>2024-08-15 11:20:24 -0700
commit125ee4ae80e3661c3208fc1c8db0c619e5f625d2 (patch)
tree9d6a990388e8e99884c77fe18081db937395c6c8 /midx-write.c
parentpack-bitmap: initialize `bitmap_writer_init()` with packing_data (diff)
downloadgit-125ee4ae80e3661c3208fc1c8db0c619e5f625d2.tar.gz
git-125ee4ae80e3661c3208fc1c8db0c619e5f625d2.zip
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>
Diffstat (limited to 'midx-write.c')
-rw-r--r--midx-write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/midx-write.c b/midx-write.c
index 62f507eb72..b3015af07f 100644
--- a/midx-write.c
+++ b/midx-write.c
@@ -827,8 +827,7 @@ static int write_midx_bitmap(const char *midx_name,
bitmap_writer_init(&writer, the_repository, pdata);
bitmap_writer_show_progress(&writer, flags & MIDX_PROGRESS);
- bitmap_writer_build_type_index(&writer, pdata, index,
- pdata->nr_objects);
+ bitmap_writer_build_type_index(&writer, index);
/*
* bitmap_writer_finish expects objects in lex order, but pack_order