diff options
| author | Taylor Blau <me@ttaylorr.com> | 2024-08-15 13:31:03 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-15 11:20:24 -0700 |
| commit | 125ee4ae80e3661c3208fc1c8db0c619e5f625d2 (patch) | |
| tree | 9d6a990388e8e99884c77fe18081db937395c6c8 /builtin/pack-objects.c | |
| parent | pack-bitmap: initialize `bitmap_writer_init()` with packing_data (diff) | |
| download | git-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.c | 2 |
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) |
