]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repack.c: pass both pack_objects args to repack_config
authorTaylor Blau <me@ttaylorr.com>
Wed, 15 Oct 2025 22:27:56 +0000 (18:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2025 17:08:53 +0000 (10:08 -0700)
commit19f6e8d023057113fe8c5890349593e70541bec2
treea76a7459e44543b3bbdd148b246d804865c49f04
parentc7a120722ed60c07fa6a32f43b56f8361bfe38af
builtin/repack.c: pass both pack_objects args to repack_config

A subsequent commit will remove 'delta_base_offset' as a static variable
within builtin/repack.c, and reintroduce it as a member of the 'struct
pack_objects_args'.

As a result, the repack_config callback will need to have both the
cruft- and non-cruft 'struct pack_objects_args's in scope. Introduce a
new 'struct repack_config_ctx' to allow the callee to provide both
pointers to the callback.

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