]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: pass source to `prepare_pack()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 9 Jan 2026 08:33:10 +0000 (09:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Jan 2026 14:40:06 +0000 (06:40 -0800)
commit0316c63ca4fc0d58ecd02243c62253b246fd046a
tree17991d29ea3ae3f5b4a03b16593f18540729ab4d
parent480336a9cec8701103a815289304ea626416043a
packfile: pass source to `prepare_pack()`

When preparing a packfile we pass various pieces attached to the pack's
object database source via the `struct prepare_pack_data`. Refactor this
code to instead pass in the source directly. This reduces the number of
variables we need to pass and allows for a subsequent refactoring where
we start to prepare the pack via the source.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
packfile.c