]> git.99rst.org Git - git.git/commit
pack-write: stop depending on `the_repository` and `the_hash_algo`
authorPatrick Steinhardt <redacted>
Mon, 10 Mar 2025 07:13:22 +0000 (08:13 +0100)
committerJunio C Hamano <redacted>
Mon, 10 Mar 2025 20:16:18 +0000 (13:16 -0700)
commit2582846f2fe21b23fe7c567e030510960f135160
tree1ccb5d1c219056c6c038b04be555500cb3aa3000
parent74d414c9f14a91a3b7bd04972bf3eb9bbe6fd81b
pack-write: stop depending on `the_repository` and `the_hash_algo`

There are a couple of functions in "pack-write.c" that implicitly depend
on `the_repository` or `the_hash_algo`. Remove this dependency by
injecting the repository via a parameter and adapt callers accordingly.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/fast-import.c
builtin/index-pack.c
builtin/pack-objects.c
bulk-checkin.c
midx-write.c
pack-write.c
pack.h
git clone https://git.99rst.org/PROJECT