aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/pack-objects.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 /builtin/pack-objects.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 'builtin/pack-objects.c')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 0ad533c045..c08a62718d 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -1345,7 +1345,7 @@ static void write_pack_file(void)
the_repository, &to_pack);
bitmap_writer_set_checksum(&bitmap_writer, hash);
bitmap_writer_build_type_index(&bitmap_writer,
- &to_pack, written_list, nr_written);
+ written_list);
}
if (cruft)