]> git.99rst.org Git - git.git/commit
delta-islands: stop depending on `the_repository`
authorPatrick Steinhardt <redacted>
Mon, 10 Mar 2025 07:13:28 +0000 (08:13 +0100)
committerJunio C Hamano <redacted>
Mon, 10 Mar 2025 20:16:20 +0000 (13:16 -0700)
commit19be71db9c3faafc113c16b4ca9fc30281baf1ce
tree27d2dc625230b2a9e309dbd3b2ad442908952de1
parentf6e174b2d8b83c17376b163fc4f8062fa3140a04
delta-islands: stop depending on `the_repository`

There are multiple sites in "delta-islands.c" where we use the
global `the_repository` variable, either explicitly or implicitly by
using `the_hash_algo`.

Refactor the code to stop using `the_repository`. In most cases this is
trivial because we already had a repository available in the calling
context, with the only exception being `propagate_island_marks()`. Adapt
it so that the repository gets passed in via a parameter.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/pack-objects.c
delta-islands.c
delta-islands.h
git clone https://git.99rst.org/PROJECT